You can create more than one constraint rules for a product.

  1. On the Product Details page, under USAGE REPORT, click the setup icon in the Constraint Rule section. The Constraint Rules page is displayed.
  2. Click Create New. The New Constraint Rule pop-up is displayed.
  3. Enter the following details:

    FieldDescription
    Rule NameEnter a name for the constraint rule. It is populated based on the product name.
    Rule Type

    Select a rule type. Supported values are:

    • Inclusion: Enforces selection of certain products as specified by the product scope specification or criteria specification in the inclusion rule.
    • Exclusion: Enforces exclusion of certain products from the shopping cart.
    • Validation: Displays the error message when the criteria conditions are fulfilled.
    • Recommendation: Product recommendations are displayed when the condition is fulfilled.
    • Replacement: Product replacements are suggested when the condition is fulfilled.
    Condition ScopeThe condition scope for the constraint rule is auto-populated and you cannot change it as the field is disabled.

    Condition Item

    The condition item for the constraint rule is auto-populated and you cannot change it as the field is disabled.
    Match In

    Select an option where the condition match must happen. Supported values are:

    • MatchInOptions: Selecting this means the condition is fulfilled only when the condition products are in the option line items of the shopping cart.
    • MatchInPrimaryLines: Selecting this means the condition is fulfilled only when the condition products are among the primary lines (bundle or standalone) of the shopping cart.
    Action Intent

    Select the intent of the action. Supported values are:

    • Auto Include: Adds selected products automatically. When the number of products selected by the rule action is more than the number mentioned in the Match Rule condition, auto-inclusion of products is not triggered. A message is displayed from the rule action instead.
      Note: Auto Include will not apply when the match rule value is Include All.
    • Prompt: Displays a message with choices of products that you can select or remove.
    • Show Message: Displays a message.
    • Check on Finalization: Applies rule action on finalization of the shopping cart.
    • Disable Selection: Disables selection of excluded products.
    • Hide: Hides the selection of excluded products.
    Action Scope

    Select the action scope. Supported values are:

    • Product: In the Product field, click to select a product to be included or excluded. You search the product using product name or code.
    • Product Family: In the Product Family field, enter a product family. One or more of the products from the product family will be included or excluded based on rule type and match rule specifications.
    • Product Group: In the Product Group field, enter a product group. One or more of the products from the product group will be included or excluded based on rule type and match rule specifications.
    • Action Criteria:
    Action ItemEnter a keyword to search the action item. From the displayed search result, select an action item.
  4. Click Save. The constraint rules details page is displayed.
  5. On the Details tab, enter the following details:

    FieldDescription
    Rule Name

    Enter a name for the constraint rule.

    Description

    Description for the constraint rule.
    Effective DateSelect the date from which the constraint rule is in effect.
    Expiration DateSelect the date until which the constraint rule is valid.
    Is Active

    Turn this setting on to indicate whether the constraint rule is active.

    Is Bundle ContextTurn this setting on to indicate whether the constraint is evaluated within a bundle.
  6. On the Conditions & Actions tab:

    1. Create a constraint rule condition.
    2. Create a constraint rule action.
  7. Click Save.

A constraint rule for the product is created and saved.