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.
Next: Browse scenarios, edit customer messages, or check the Chinese UI labels.