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 tab | Who it affects | Typical use |
|---|---|---|
| Global Restriction | Visitors and shoppers, except accounts with the store-management bypass | Temporarily restrict selected products for everyone |
| Role-Based Restriction | Signed-in users with the selected role | Prevent a customer group from accessing selected products |
| Country-Based Restriction | Visitors whose IP-derived country matches the saved rule | Restrict selected products for visitors in a particular country |
| Bulk Role Restrictions | Several selected roles | Apply the same restriction configuration to multiple roles |
| Bulk Country Restrictions | Several selected countries | Apply the same restriction configuration to multiple countries |
| Order-Based Restriction | Customers who do not meet the configured purchase-history conditions | Make 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.
