This section describes how to create a rule for a buy condition or offer. A rule automatically selects items based on product, SKU, or variant properties. For example, suppose you created a custom, internal property called Do Not Discount on the base product type. Merchandisers select this option for products in your catalog that should never be discounted by any promotion. To make sure that no promotions ever discount these products, create a rule for each promotion’s offer that includes the base product property Do Not Discount and specifies that its value should be True.

To create a rule that specifies products to include or exclude from a buy condition or offer:

  1. On a promotion’s details page, under Included Items or Excluded Items, click the New Rule button.

  2. Select a type of property to use from the Type list. You can select only one type per rule:

    See Create and edit product types for more information about product properties and SKU properties. See Create and edit SKUs for more information about variant properties.

  3. Select a property from the Attribute list. The available properties depend on the Type you selected in the previous step. You can select only one attribute per rule.

    • For Base Product, Commerce Cloud displays all the product properties associated with your catalog’s base product type (except ID), including custom properties you created.

    • For a custom product type, Commerce Cloud displays all the custom product properties associated with the product type you selected. None of the base product type properties are available in this list.

    • For Base SKU, Commerce Cloud displays all the SKU properties associated with the base product type, including custom SKU properties you created.

    • For a custom product type SKU or Variant, Commerce Cloud displays all the SKU and variant properties associated with the product type you selected. None of the base SKU properties are available in this list.

  4. Select an operator that links the property to a value that you will specify in the next step.

    The operators you see depend on the kind of property you selected as an attribute. For example, if you select the base product type property Arrival Date, the available operators are Before and After.

  5. Select or enter a value for the property.

    For some values, such as variant values, Commerce Cloud displays a list for you to choose from. (If you selected a custom product type SKU or Variant, the list includes both SKU values and variant values, with any SKU values appearing first in the list.) For others, such as Availability Date or Brand, you must type in a value. The rule editor does not validate any text or numeric values you type, so take care when you enter values and make sure you test promotions before they go live. The rule editor also does validate date values.

  6. Click Done when you finish creating the rule.

  7. If you create more than one rule for an included or excluded items list, select one of the following Rule Matching options to specify how the rules in this set behave together:

    • Match Any Rule: (default) If an item in a shopper’s cart matches any rule in the set, that rule applies.

    • Match All Rules: If an item in a shopper’s cart matches all the rules in the set, all the rules apply. If the item matches only some of the rules but not all, none of the rules apply.

  8. Click Save.


Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices