using in_array for OR
-
Hi there, first off, great plugin! This is changing the way I work with Elementor!
My challenge: I need to show/hide an element based on one or more Product Categories. I can do this successfully for one category when using the condition: Contains. For example:
Dynamic Tag: Product Terms > Category
Condition: Contains
Condition value: “Venues”
= TRUEHowever, I need the condition to be met when the product belongs to other categories also. E.g., Venues OR Transport
I have tried the Condition: In array, however, this doesn’t seem to work. For example, on the same item as above:
Dynamic Tag: Product Terms > Category
Condition: In array
Condition value: “Venues”
= FALSE (which seems strange)I would really like to be able to do this:
Dynamic Tag: Product Terms > Category
Condition: In array
Condition value: “Venues, Transport”
= TRUE (only if the product belongs to Venues OR Transport category)Does that make sense? Is this how In array should work?
Thanks in advance!
- The topic ‘using in_array for OR’ is closed to new replies.