This example prevents a customer from purchasing more than $200 in total from the products in a collection you specify. Amounts are combined no matter which product in the collection they buy.
Prerequisite: Cumulative price rules are a Full plan feature. To use them, cumulative purchase limits must be enabled.
A customer whose total for the products in the collection is under $200: purchase is allowed.
A customer whose total has reached $200: purchase is not allowed.
A customer who is not logged in: they are asked to log in at checkout.
The examples below assume the collection contains Product A and Product B, and the amount type is "Item total (after product discounts)".
Purchased so far | Cart contents | Result |
|---|---|---|
None | Product A $200 | Allowed |
None | Product A $120 + Product B $120 | Not allowed ($240 in total) |
Product A $120 | Product B $80 | Allowed ($200 in total) |
Product A $200 | Product B $10 | Not allowed (the limit has been reached) |
(1) Open Cumulative price rules
Open the app admin → "Price limits" → "Cumulative price rules".
(2) Enable cumulative purchase limits
Grant the additional permissions and select "Enable". If they are already enabled, skip this step.
(3) Enter the settings and save
Select "Create a cumulative price rule", configure the following, and save.
Field | Value |
|---|---|
Rule name | Any internal name |
Maximum amount | 200 |
Amount type | Item total (after product discounts) |
Require customers to log in | Enabled |
Eligible items | Specific collections (the collection to limit) |
Counted per | Whole rule |
Message (signed-in customers) | Enter as needed |
Message (customers who are not logged in) | Text prompting them to log in |
Checkout message (signed-in customers) | e.g. You can purchase up to $200 of this item in total. |
Checkout message (customers who are not logged in) | e.g. Please log in to make this purchase. |
Cart message | e.g. One order can include up to $200. |
(4) Enable the cumulative price rule
Select "Enable" on the rule details screen. Saving alone does not apply the limit.
Counting per "Whole rule" keeps one total no matter which product in the collection is purchased. To allow $200 per product, select "Product".
You can specify up to 50 collections in one rule.
If you change the contents of a collection, orders from then on are counted against the new set of eligible items. Past orders are not recounted.
Choosing "Item total (after product discounts)" counts the amount after product discounts. To count list prices, choose "Item total (before product discounts)". Order discounts, shipping, and tax are not included either way.
The maximum amount and the totals are in the store currency. For customers paying in another currency, the checkout check and the amounts in the messages are converted to that currency.
The amount variables in the messages are replaced with numbers only and carry no currency unit. Write the unit in the message, as in "You can purchase {{remaining}} more."
Only orders placed after you create the rule are counted. Customers who purchased before that are not limited.
If you disable "Require customers to log in", customers who are not logged in can also purchase. Purchases are counted when the email entered at checkout matches the customer record, but an order placed with a different email address lets them purchase again.
Changing the eligible items and what the total is counted per gives you limits like these.