Product Icon

Country Based Product Purchase Restriction for WooCommerce

Restrict product purchases by country, user role, and guest access. Hide price and disable Add to Cart for restricted users.
Choose a billing option
$29
Save 20%
$58 $46.40

Subscription includes

  • Product updates and improvements
  • Customer support
  • 30-day money-back guarantee

  • Restrict product purchases by selected countries
  • Assign allowed user roles for each selected country
  • Only matching country + role users can purchase
  • Block purchases if the country matches, butthe  role is not allowed
  • Optional guest purchase control by country
  • Hide price and Add to Cart for restricted users
  • Automatic customer country detection via IP

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.

Features

 Country Selection Control

Admins can select one or more countries where the product is available. Customers outside these countries cannot purchase the product.

Role Assignment Per Country

For each selected country, admins must choose which user roles are allowed. This ensures precise control over who can purchase in each region.

Country + Role Matching Logic

A product can be purchased only when both conditions match:

  •  Customer country is allowed.
  • Customer role is allowed for that country.
  •  If country matches but role does not → purchase blocked.
  •  If role matches but country not allowed → purchase blocked.

Block Unauthorized Buyers

Users from allowed countries but with unapproved roles cannot purchase the product.

Guest User Control

Admins can allow or block guest users by country. Guests can only purchase if their country is allowed and guest access is enabled.

Hide Price & Disable Add to Cart

Restricted users will not see the price or Add to Cart button, preventing confusion and unauthorized orders.

Automatic Country Detection

The plugin detects the customer’s real-time location using IP geolocation and applies rules automatically.


Frequently asked questions

How does the country-based restriction work?

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.

Can I allow different user roles for different countries?

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.

What happens if a user’s country is allowed but their role is not?

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.

Can guest users purchase restricted products?

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.

Does the plugin hide the price for restricted users?

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.

Will the Add to Cart button be removed for restricted users?

Yes. The plugin automatically hides or disables the Add to Cart button for users who do not meet the country and role requirements.

How accurate is the country detection?

The plugin uses WooCommerce geolocation based on IP address. While highly accurate, results may vary if users are using VPNs or proxy services.

Customer reviews

Related Products

Price $79 annually
Rated 3.4 out of 5 stars
Price $59 annually
Rated 3.1 out of 5 stars
Price $109 annually
Rated 2.8 out of 5 stars
Price $49 annually
Rated 4.1 out of 5 stars
Price $109 annually
Rated 2 out of 5 stars
Price $109 annually
Rated 2.3 out of 5 stars
Price $109 annually
Rated 2 out of 5 stars
Price $109 annually
Rated 2.6 out of 5 stars
Price $109 annually
Rated 2.3 out of 5 stars