Subscription includes
Country-Based Product Restriction for WooCommerce allows store owners to control product purchases using a powerful combination of country and user role rules.
Admins can select specific countries and then define which user roles are allowed to purchase the product within those countries. This ensures that only the right customers — in the right location and with the right role — can place orders.
The plugin automatically detects the customer’s country via IP and enforces restrictions instantly by hiding prices and disabling Add to Cart when conditions are not met.
This is ideal for B2B stores, regional distributors, wholesale pricing models, and controlled product availability.
Admins can select one or more countries where the product is available. Customers outside these countries cannot purchase the product.
For each selected country, admins must choose which user roles are allowed. This ensures precise control over who can purchase in each region.
A product can be purchased only when both conditions match:
Users from allowed countries but with unapproved roles cannot purchase the product.
Admins can allow or block guest users by country. Guests can only purchase if their country is allowed and guest access is enabled.
Restricted users will not see the price or Add to Cart button, preventing confusion and unauthorized orders.
The plugin detects the customer’s real-time location using IP geolocation and applies rules automatically.
The plugin detects the customer’s country using IP geolocation and checks it against the allowed countries set by the admin. If the customer’s country is not allowed, they cannot purchase the product.
Yes. You can select specific user roles for each allowed country. Only users whose role matches the allowed roles for their country will be able to purchase the product.
If the country matches but the user role is not permitted, the user will not be able to purchase the product. The price and Add to Cart button can be hidden based on your settings.
Yes, if you enable guest access. Guest users can purchase products only from allowed countries. If guest access is disabled, guests will be blocked regardless of country.
Yes. You can enable the option to hide prices for restricted users, ensuring they do not see product pricing if they are not allowed to purchase.
Yes. The plugin automatically hides or disables the Add to Cart button for users who do not meet the country and role requirements.
The plugin uses WooCommerce geolocation based on IP address. While highly accurate, results may vary if users are using VPNs or proxy services.
Countries