Skip to main content
Start with one test product in Order Limit. This guide limits the total quantity of that product, including all its variants, to 2 units in a cart.

Before you begin

Open the app from your Shopify admin. Prepare a product that customers can buy on your storefront. If it has variants, use two variants for the test.
1

Open quantity rules

Open Apps → Order Limit. On the app home page, choose All quantity rules and click 创建规则 to open the editor.
2

Configure the rule

Name it “Test product: maximum 2”. Select Cart quantity limit, leave the minimum blank, and enter 2 as the maximum. Choose Limit each applicable item individually.Under Applies to, select Specific products and click 选择产品 to choose the test product. Confirm its name appears in the editor.
3

Save and activate

Set the timing to Cart interactions and checkout. Select Active and click Create and activate (创建并启用; 保存并启用 when editing).Return to Quantity limits, turn on Enable quantity rules, and confirm Cart and checkout validation is enabled. Otherwise, click Enable validation.
4

Test on your storefront

Add 2 units and enter checkout. This rule should allow the cart. Change the quantity to 3 and verify the restriction message.For a product with variants, also test 1 unit of variant A plus 2 of variant B. The combined product quantity of 3 should be blocked.

Expected results

“Allowed” means this rule passes. Other enabled rules still apply.
Save an unfinished rule as Draft. Draft rules do not enforce restrictions. Test before applying the rule to your live promotional products.
Next: Browse scenarios, edit customer messages, or check the Chinese UI labels.

Apply the tested rule to live products

Reopen the rule, replace the test product with the live product and click 保存并启用. Retest 2 units allowed and 3 blocked. To pause, choose 草稿 and 保存为草稿; renaming the rule does not pause it. If results differ, use troubleshooting. Complete the launch checklist before rollout.