Limitations of Rule Builder & Shopify functions

Order of Logic (AND/OR):

The style of logical modelling supported by the Rule builder is formally defined as CNF (Conjunctive Normal Form) notation.

  1. Limitation: The rule builder only supports OR logic horizontally within the same group and AND logic vertically between different condition groups. This means you cannot mix AND and OR logic vertically.

    1. Example of Supported Config: Rule 1 OR Rule AND Rule 3 OR Rule 4 OR Rule 5 AND Rule 6

    2. Example of Unsupported Config: Rule 1 AND Rule 2 OR Rule 3 AND Rule 4 OR Rule 5 AND Rule 6

  2. Solution: Simplify your expressions by restructuring the rules to fit the supported configuration. If you have a complex condition that mixes AND and OR logic, try to break it down into simpler, nested rule groups that align with the AND/OR structure. This might involve creating additional rules that capture intermediate conditions, or rethinking how you combine rules to achieve the desired outcome.

If you need to express logic that is not using the CNF notation, you can easily convert your logic using a online tool like dcode.br to convert from any unsupported notation to the standard form (reference). If this does not address your problem, feel free to reach out to us with your custom need!

We have also released the ability to invert and / or logic (Invert Logical Operation) for higher flexibility when designing your programmes.


Restrictions imposed by Shopify

  1. You can have a maximum of 25 automatic discounts active on your store at one time. This means that a maximum of 25 automatic discount codes can be applied on the same order.

  2. Customers can use a maximum of five product or order discount codes and one shipping discount code on the same order.

  3. Discounts can only be combined on orders that are made through the Online Store and Shopify POS.

  4. Products that are part of a Buy X get Y discount are ineligible for further product discounts. If a customer enters a discount code that applies to products in a Buy X get Y discount, then the Buy X get Y discount is removed and only the discount code that the customer entered is applied to the order.

  5. Discounts created through Shopify functions (regardless of automatic / coupon based) will only apply to the first checkout order on subscriptions.


Last updated