Step 2: Describe the conditions

In this step, the conditions are described that must be met for an order to qualify for the promotion. The rule goes into action whenever the set of conditions is met.

If you are using audiences from Real-Time CDP, skip to this section.

NOTE
The cart price rule is applied to each product in the shopping cart whenever the set of conditions in the Conditions tab is met. Add conditions in the Actions tab to limit the number of products affected by the cart price rule.
NOTE
If at least one conditional product attribute has an empty value, the cart price rule is not applied to the product.
  1. In the left panel, select Conditions.

    Cart price rule - conditions

    The first condition appears by default, and states:

    If **ALL** of these conditions are **TRUE**:

    The statement has two bold links that you can click to display the selection of options for that part of the statement. You can create different conditions by changing the combination of these values. Do any of the following:

    • Click ALL and select ALL or ANY.
    • Click TRUE and select TRUE or FALSE.
    • Leave the condition unchanged to apply the rule to all products.
  2. Click Add ( Add icon ) at the beginning of the next line and select an option for the condition, such as cart attribute, product subselection, or combination.

    For this example, complete the next part of the condition as follows:

    • When prompted to Choose the condition to add, choose Products Subselection.

      Cart price rule condition - products subselection

    • In the condition statement, click total quantity and select total quantity or total amount.

    IMPORTANT
    Total amount is a row total, so taxes are not included into the total amount for the Products Subselection cart price rule condition. Use the Subtotal (Incl. Tax) condition to include taxes.
    • In the condition statement, click is and select greater than.
  3. When the next part of the condition appears, click the elements of the statement so you can see where each link with variable values is located.

  4. Click the “more” (…) link, and enter 100.

    This condition requires the total quantity of the cart to be 101 or greater.

    Cart price rule condition - total quantity value

  5. Click Add ( Add icon ) at the beginning of the next line, and then add a condition that is based on Category.

    Cart price rule condition - product attribute category

  6. In the next part of the condition, click the more () link to display the input field, and then open the Chooser ( List icon ) to display the category tree.

  7. Select the checkbox of the category that you want to use as a condition for the price rule and click the Add icon icon to accept the category selections.

    The condition can be based on any category that is a child of the store’s root category.

    Cart price rule condition - product category

  8. To add more conditions, click Add ( Add icon ) and define another condition.

    You can repeat the process as many times as needed to describe the conditions that must be met for the price rule. Here are some examples:

    Example 1: Regional Price Rule

    To create a regional price rule, use one of the following cart attributes:

    • Shipping Postcode
    • Shipping Region
    • Shipping State/Province
    • Shipping Country

    Example 2: Shopping Cart Totals

    To base the condition on shopping cart totals, use one of the following cart attributes:

    • Subtotal
    • Total Items Quantity
    • Total Weight
NOTE
In a case of multiple parallel promotions, the Subtotal condition is applied to the base shopping cart subtotal before any discounts.
IMPORTANT
For purchase orders only: When a cart price rule is set based on one or more specific payment methods, the discount is applied to the total when a purchase order is created. After the purchase order is created, the discount remains applied to the total if the payment method is changed to one that is not covered by the cart price rule.

Add a product attribute to cart price rules

  1. Go to Stores > Attributes > Product and open the product attribute.

  2. In the left panel, select Storefront Properties.

  3. Set Use for Promo Rule Conditions to Yes.

  4. Click Save Attribute.

  5. Go to Marketing > Cart Price Rules and open the required cart price rule.

  6. Expand Expansion selector the Condition section and select Product attribute combination.

  7. Set this condition to one of the following values:

    • Click FOUND and select FOUND or NOT FOUND.

    • Click ALL and select ALL or ANY.

  8. Click the Add ( Add icon ) icon and select the Product Attribute that you set up for promotional rule conditions.

  9. Click Save.

NOTE
When using the is not one of condition with a SKU product attribute and configurable product, both the parent and child product SKUs must be selected. To avoid listing all child SKUs in the rule, you can use the does not contain condition with common SKU parts of a configurable product and its child products.

Use Real-Time CDP audiences to set a condition

You can set a condition for a cart price rule based on a Real-Time CDP audience.

  1. Expand Conditions, click the “+” icon, and select Real-Time CDP Audience from the list.

    Select Real-Time CDP Audience Condition

  2. Select the More () icon, click Open Chooser, and view all available Real-Time CDP audiences.

    View Real-Time CDP Audiences

  3. Select the Real-Time CDP audience you want to use for the cart price rule.

    OptionDescription
    IDAn internal identifier of the audience used within the Admin
    Real-Time CDP Audience IDUnique identifier of the audience when it was created in Experience Platform
    NameName of the audience, such as Orders over $50
    DescriptionDescription of the audience, such as People who placed an order over $50 in the last month..
    SourceIndicates where the audience came from, such as Experience Platform.
    WebsiteIndicates which website you have linked to the datastream that contains the audiences. You create this link when you connect your Commerce instance to the Experience Platform through the Data Connection extension.

In the next step, you define the action to occur when the condition is met.