Constraint Rules are configuration rules that are applied during the ordering process to a product or set of products. Constraint rules are set up to conditionally add a product to an order or conditionally block product additions to an order. It is supported for the standalone, bundle, and options products for basic inclusion and exclusion rules.

For example, when Product A is added to the cart, Product B may be automatically added based on an auto-inclusion type rule. Similarly, when Product B is added, users may be prevented from adding Product C.

In a Constraint Rules criteria, you can set up multiple AND or OR or a Combination of AND and OR conditions, including a bundle in any of the conditions. You can associate an option with a bundle along with Match in Options, Match in Primary (in the case of bundles), or both. Inclusion and Exclusion rules are also supported. For example, if [Option A] AND [Bundle X] (Parent Bundle] THEN AUTO INCLUDE [Option B].

When you open the Product Details, click Add to Cart, or select any option and option groups, the application triggers the constraint rule for the default product configuration. When you select an option, option groups, or add any product to the cart that has validation or inclusion/exclusion rules, you will see the in-line (popup) and page-level validation message and an alert icon with the number of warnings/errors next to the mini cart icon. You can review the validation message and add/remove the suggested product. You can also see the line item level validation message and disable action when the buyer selects or deselects the option group and/or option within the option group. 

For more information, see Creating a Constraint Rule and Configuring a Constraint Rule Using the Advanced Rule Setup.


This section provides information on working with constraint rules.