An example that limits the total price of the same variant to $20 or more and $40 or less per order. Use this when you want to restrict both low-value and high-value orders.
Prerequisite: The initial setup for price limits must be complete. If you haven't done this yet, see "Initial Setup (Price Limits)".
You can check the behavior after setup in [Demo] Price Limit of $20 to $40 in Total.
When you enable the price rule, it evaluates the total price of the same variant in the cart based on the item total (before product discounts).
Total price of the same variant is less than $20: purchase is not allowed.
Total price of the same variant is $20 or more and $40 or less: purchase is allowed.
Total price of the same variant is more than $40: purchase is not allowed.
Note: Prices of different variants are not added together. For example, if you add Variant A at $10 and Variant B at $10 to the cart, making the cart total $20, both are still not allowed because each variant is less than $20.
(1) Create a price rule
Open the app admin → "Price limits" → "Price rules" → "Create rule".
(2) Enter the settings
Configure the following.
Field | Value |
|---|---|
Title | Any internal title |
Minimum price | 20 |
Maximum price | 40 |
Price type | Item total (before product discounts) |
Applicability | Variant |
Eligible items | Products or variants to limit by price |
Product message | Enter if needed |
Display timing | Cart updated and checkout |
Message for minimum price | Enter if needed |
Message for maximum price | Enter if needed |
(3) Save and enable the price rule
After saving the settings, select "Enable." Saving alone does not apply the price limit.
(4) Check the behavior
Add the eligible variant to the cart in a quantity that reaches the price above, and check the result when the cart is updated and at checkout.
You can use
{{minPrice}}and{{maxPrice}}in the alert messages. They are replaced with a plain number such as 20, without thousands separators or a currency symbol.Minimum price and maximum price are set in the store currency. If you sell in local currency, the evaluation uses the amount converted at the exchange rate.