⌘K

Overview and important behaviour

Last updated

Version note: This guide covers the v1.2.0 development build. Settings may differ from your installed Marketplace version. Verify your version before following these steps; runtime compatibility has not yet been confirmed.

Conditional Store Restrictions controls access to selected WooCommerce products and product categories. Depending on your settings, restrictions can apply to all ordinary visitors, a selected user role, a detected visitor country, or customers who have not met purchase-history conditions.

Choose the right restriction

Setting tabWho it affectsTypical use
Global RestrictionVisitors and shoppers, except accounts with the store-management bypassTemporarily restrict selected products for everyone
Role-Based RestrictionSigned-in users with the selected rolePrevent a customer group from accessing selected products
Country-Based RestrictionVisitors whose IP-derived country matches the saved ruleRestrict selected products for visitors in a particular country
Bulk Role RestrictionsSeveral selected rolesApply the same restriction configuration to multiple roles
Bulk Country RestrictionsSeveral selected countriesApply the same restriction configuration to multiple countries
Order-Based RestrictionCustomers who do not meet the configured purchase-history conditionsMake selected products available after qualifying purchases

Selected products and categories are restricted, not allowed. For example, selecting the Customer role and Product A prevents matching Customer accounts from accessing Product A. It does not make Product A exclusive to Customer accounts.

What shoppers experience

The inspected implementation excludes restricted products from the main frontend query, filters WooCommerce product visibility and purchasability, and checks the standard add-to-cart validation path. A restricted single-product page redirects to the website homepage. A blocked standard add-to-cart attempt uses this message:

This product is not available for your account.

These hooks describe the intended integration paths; they do not prove that every theme, product block, search integration, feed, API, cart, or checkout path is covered. Test your actual storefront before launch.

Accounts with the manage_woocommerce capability bypass the restrictions. Test as a shopper, not only as an administrator or shop manager.

Still stuck? How can we help? Get Help