A product access rule decides who may buy the targeted products. A blacklist blocks matching buyers; a whitelist allows only matching buyers. Use it for bans, member access, or customer and geographic restrictions. It has no ordinary quantity cap. For “how many units,” use a product limit.
Create a blacklist or whitelist
- Open Product access rules (
/access-rules) from the app's primary navigation, create a rule, and enter a Rule name. - Select Blacklist or Whitelist under Access type.
- Under Apply to, choose all products, specific products, or specific collections. A whitelist must target specific products or collections; All products is unavailable for it.
- Add included or excluded customer tags for logged-in buyers, and included or excluded emails for guest checkout. You can also set allowed or blocked countries, login requirements, and active dates.
- Read the Rule effect preview to confirm the product scope and buyer audience. Activate the rule and Enable checkout validation, then save. Save the blocking messages in Translation.
Example: Block one customer group from a product
Select Product A, create a Blacklist, and add the included customer tag restricted. A logged-in buyer with that tag trying to purchase one unit of A is blocked. A logged-in buyer without the tag can buy one unit of A. Product B is outside this rule's scope. To block guest email blocked@example.com as well, add it separately under Include emails.
Finally, test matching and nonmatching buyers with products inside and outside the scope. Confirm checkout validation is enabled.
Use a test product or cart to check the outcome before applying this setup across your store.
All guides