This example requires at least 3 of the same variant per order. Use it for bulk-purchase-only items or items for business use.
Prerequisite: The initial setup for Quantity limits must be complete. If you haven't done this yet, see "Initial Setup (Product Quantity Limits)".
You can check the behavior after setup in [Demo] Quantity Limit of 3 or More.
When the quantity rule is enabled, it evaluates the total quantity of the same variant in the cart.
Total quantity of the same variant is 1–2: purchase is not allowed.
Total quantity of the same variant is 3 or more: purchase is allowed.
(1) Add a quantity rule
Open the app admin → "Quantity limits" → "Quantity rules" → "Add quantity rule".
(2) Enter the settings
Configure the following.
Field | Value |
|---|---|
Title | Any internal title |
Minimum quantity | 3 |
Maximum quantity | Not set |
Increment | Not set |
Applicability | Variant |
Eligible items | Products or variants to restrict |
Product message | Enter if needed |
Display timing | Cart updated and checkout |
Message for minimum order quantity | Enter if needed |
(3) Save and enable the quantity rule
After saving the settings, select "Enable." Saving alone does not apply the quantity limit.
(4) Check the behavior
Add the target variant to the cart in the quantities above, and check the result when the cart is updated and at checkout.
Since maximum quantity is not set, customers can purchase 3 or more of the same variant with no upper limit. You can use
{{minQuantity}}in the message for minimum order quantity.