By default, when applying a condition, rules will apply AND logic meaning all conditions must be true for the rule to trigger.
This can be limiting in instances such as wanting a rule to fire if any one of several filters are applied (ie. using OR logic).
For example, you wish for a rule to tigger when:
- query is empty
- applied filter includes either
available_sizes:46ORavailable_sizes:48ORavailable_sizes:50
you can use the Visual Editor to define multiple conditions within a single rule by adding each condition separately using the "Add query condition" option.
For the example above, you would set the following conditions:
-
Condition 1: query is
empty query+ filter isavailable_sizes:46 -
Condition 2: query is
empty query+ filter isavailable_sizes:48 -
Condition 3: query is
empty query+ filter isavailable_sizes:50
This configuration means only one condition of the rule has to be met for it to be triggered.