Before you begin
Prepare red and blue variants of the same purchasable cup. Review rule priority: an overlapping individual quantity rule can relax the product cap.Set both levels
1
Find the product
Open Apps → 订单限购 in Shopify. Choose 按产品设置数量限制 on the app home page. Search for the cup under 搜索产品.
2
Set the whole-product cap
On the product row, set 限制状态 to 已开启, leave 最小值 blank and enter
3 under 最大值. This counts all variants of the product together.3
Set the blue-variant cap
Expand the product variants. On the blue row, select 已开启, leave the minimum blank and set the maximum to
1. Click 保存 at the top and wait for saving to finish.4
Enable the feature and validation
Return to 数量限制, turn on 开启产品数量限制, and choose 购物车互动时和结账时. Confirm 购物车与结账校验 is enabled, using 启用校验 if needed.
Test four carts
Other active rules can still block a cart that passes these settings.