Learn how to create and use an if, else if, else rule structure to handle multiple conditions in your rules.
Here is an example of a branching rule with three blocks. Here, we want to apply different discounts based on the product tag and we have a default discount of 5% off on all shipping in the case customer is not eligible for any of the other discounts. Only one block will execute based on the conditions and then the rule will stop.
If product tag is sport and order subtotal amount is greater than or equal to 33
Else if customer tag is VIP
Else (default catch all)
Example: Product tag has value of sport AND Order subtotal amount ≥ 33 OR Product tag has value of shoes → Apply 20% OFF on all shipping
Example: Previous all conditions invalid AND Customer tag has value of VIP → Apply 50% off on all shipping
Example: Previous all conditions invalid → Apply 5% OFF on all shipping
sport
→ Apply 20% off on all shipping (highest priority).
winter
AND Previous all conditions invalid → Apply 50% off on all shipping
sport
), 20% off shipping is applied, and the rule ends.
winter
, then 50% off shipping applies, and the rule ends.