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.
-
In the left panel, select 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
orANY
. - Click TRUE and select
TRUE
orFALSE
. - Leave the condition unchanged to apply the rule to all products.
- Click ALL and select
-
Click Add (
For this example, complete the next part of the condition as follows:
-
When prompted to Choose the condition to add, choose
Products Subselection
. -
In the condition statement, click total quantity and select
total quantity
ortotal amount
.
IMPORTANT
Total amount is a row total, so taxes are not included into thetotal 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
.
-
-
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.
-
Click the “more” (…) link, and enter
100
.This condition requires the total quantity of the cart to be
101
or greater. -
Click Add (
-
In the next part of the condition, click the more (…) link to display the input field, and then open the Chooser (
-
Select the checkbox of the category that you want to use as a condition for the price rule and click the
The condition can be based on any category that is a child of the store’s root category.
-
To add more conditions, click Add (
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
Add a product attribute to cart price rules
-
Go to Stores > Attributes > Product and open the product attribute.
-
In the left panel, select Storefront Properties.
-
Set Use for Promo Rule Conditions to
Yes
. -
Click Save Attribute.
-
Go to Marketing > Cart Price Rules and open the required cart price rule.
-
Expand
-
Set this condition to one of the following values:
-
Click FOUND and select
FOUND
orNOT FOUND
. -
Click ALL and select
ALL
orANY
.
-
-
Click the Add (
-
Click Save.
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.
-
Expand Conditions, click the “+” icon, and select Real-Time CDP Audience from the list.
-
Select the More (…) icon, click Open Chooser, and view all available Real-Time CDP audiences.
-
Select the Real-Time CDP audience you want to use for the cart price rule.
Option Description ID
An internal identifier of the audience used within the Admin Real-Time CDP Audience ID
Unique identifier of the audience when it was created in Experience Platform Name
Name of the audience, such as Orders over $50
Description
Description of the audience, such as People who placed an order over $50 in the last month.
.Source
Indicates where the audience came from, such as Experience Platform
.Website
Indicates 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.