An example that limits the total price of the same variant to $30 or less per order. Use this when you want to set an upper limit on 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 $30 or Less 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 $30 or less: purchase is allowed.
Total price of the same variant is more than $30: purchase is not allowed.
Note: Prices of different variants are not added together. For example, if you add Variant A at $20 and Variant B at $20 to the cart, making the cart total $40, both are still allowed because each variant is $30 or less.
(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 | Not set |
Maximum price | 30 |
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 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
{{maxPrice}}in the message for maximum price. It is replaced with a plain number such as 30, 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.