Product Icon

Country Based Product Purchase Restriction for WooCommerce

Restrict WooCommerce purchases by country, user role, and guest access. Hide prices, block Add to Cart, and turn visitors into leads.
Choose a billing option
$43
Save 20%
$86 $68.80

Product comparison

Subscription includes

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

  • Restrict product purchases by selected countries
  • Assign allowed user roles per product
  • Only matching country + role combinations can purchase
  • Optional guest purchase control by country
  • Hide price and disable Add to Cart for restricted visitors
  • Show a custom message or suggest an alternative product instead
  • Choose to hide the product completely from restricted visitors, or show it with a message
  • Let restricted visitors send you a message — captured as a lead, plus an instant email to you
  • Built-in analytics: see which countries/roles are hitting your restrictions most
  • Export restriction data to CSV any time
  • Restrict product purchases by user role
  • Combine country + role for strict, layered access control
  • Hide product price automatically for restricted users
  • Disable Add to Cart button for restricted users
  • Allow or block guest user purchases, per country
  • Set restrictions individually for each product
  • Custom restriction messages with HTML support (including links)
  • Custom button label and button color options
  • Automatic country detection via IP geolocation
  • Compatible with the latest WordPress and WooCommerce versions

Stop Selling to the Wrong Customer in the Wrong Country

Country-Based Product Restriction for WooCommerce gives store owners full control over who can purchase a product, using a simple combination of country and user role rules. Admins choose which countries a product is available in and which user roles are allowed to buy there — so only the right customer, in the right place, with the right account type, can complete an order.

The plugin detects each visitor’s country automatically via IP and enforces your rules instantly: hiding the price and disabling Add to Cart the moment conditions aren’t met. And instead of simply turning restricted visitors away, you can choose to show them a custom message, suggest an alternative product, or let them send you a quick message — so a blocked sale becomes a follow-up opportunity instead of a dead end.

Built for B2B stores, wholesale sellers, regional distributors, and any store that needs to legally or commercially control where a product can be sold.

Country Selection Control

Choose one or more countries where a product is available. Visitors outside those countries can’t purchase it — blocked automatically, no manual review needed.

Choose one or more countries where a product is available. Visitors outside those countries can’t purchase it — blocked automatically, no manual review needed.

Role Assignment Per Product

Decide which user roles are allowed to buy — wholesaler, distributor, verified customer, or any custom role your store uses. This goes beyond simple geo-blocking to give you real account-level control.

Decide which user roles are allowed to buy — wholesaler, distributor, verified customer, or any custom role your store uses. This goes beyond simple geo-blocking to give you real account-level control.

Country + Role Matching

A purchase only goes through when both conditions are met: the visitor’s country is allowed, and their role is allowed. Country matches but role doesn’t → blocked. Role matches but country doesn’t → blocked. No loopholes.

A purchase only goes through when both conditions are met: the visitor’s country is allowed, and their role is allowed. Country matches but role doesn’t → blocked. Role matches but country doesn’t → blocked. No loopholes.

Guest User Control

Choose whether guests (not logged in) can purchase from allowed countries. Perfect for B2B stores that require account registration before anyone can buy.

Choose whether guests (not logged in) can purchase from allowed countries. Perfect for B2B stores that require account registration before anyone can buy.

Hide Price & Disable Add to Cart

Restricted visitors won’t see the price or the Add to Cart button — a clean, professional experience with no confusing “blocked at checkout” surprises. Works reliably on both classic and block-based themes.

Restricted visitors won’t see the price or the Add to Cart button — a clean, professional experience with no confusing “blocked at checkout” surprises. Works reliably on both classic and block-based themes.

Custom Message & Alternative Product Suggestions

Instead of a dead end, tell restricted visitors why the product isn’t available to them (with your own custom wording), and point them toward a product they can buy — keeping them shopping instead of leaving.

Instead of a dead end, tell restricted visitors why the product isn’t available to them (with your own custom wording), and point them toward a product they can buy — keeping them shopping instead of leaving.

Show or Hide — Your Choice

For every restricted product, choose whether visitors see the product page with a restriction message, or the product disappears entirely — no listing on the shop page, in search results, or in related products.

For every restricted product, choose whether visitors see the product page with a restriction message, or the product disappears entirely — no listing on the shop page, in search results, or in related products.

Turn Blocked Visitors Into Leads

Restricted visitors can send you a quick message — you’re emailed instantly, and every request is saved to your dashboard so nothing gets missed.

Restricted visitors can send you a quick message — you’re emailed instantly, and every request is saved to your dashboard so nothing gets missed.

Built-In Restriction Analytics

See exactly which products, countries, and roles are triggering the most blocks, with a running count for repeat visitors — so you know where demand is coming from before you decide to expand.

See exactly which products, countries, and roles are triggering the most blocks, with a running count for repeat visitors — so you know where demand is coming from before you decide to expand.

See exactly which products, countries, and roles are triggering the most blocks, with a running count for repeat visitors — so you know where demand is coming from before you decide to expand.

Automatic Country Detection

The plugin detects each visitor’s real-time location via IP geolocation and applies your rules on every page visit — no extra setup, no third-party API keys.

Comparison Table

Strict AND logic — both country and role must match. No workarounds, no loopholes.

Country User Role Result
Allowed Allowed role Can Purchase
Allowed Wrong role Blocked
Not allowed Allowed role Blocked
Not allowed Wrong role Blocked
Allowed Guest (ON) Can Purchase
Allowed Guest (OFF) Blocked

Built for real-world selling scenarios

  • Wholesale & B2B Distributors Limit wholesale products to verified buyers in specific countries. Retail visitors can see the product but can’t purchase without the right account type.
  • Regional Distribution Agreements Prevent direct sales that would violate exclusive distribution deals — restrict each product to only the territories your agreements cover.
  • Legal & Compliance Restrictions Some products simply can’t be sold in certain countries. Restrict them automatically at the product level — no manual order review needed.
  • Regional Product Launches Launch in select countries first, then expand — just add countries to the allowed list when you’re ready, no code changes required.
  • Capturing Demand Before You’re Ready Not selling in a country yet? Let visitors register their interest instead of just bouncing — so you know exactly where to expand next.

Frequently asked questions

How does the country-based restriction work?

The plugin detects the visitor's country via IP geolocation and checks it against the countries you've allowed for that product. If their country isn't on the list, they can't purchase it.

Can I restrict by user role as well as country?

Yes. For each product, you choose which countries and which user roles are allowed. A visitor must match both to complete a purchase.

What happens if a visitor's country is allowed but their role isn't?

They're blocked. Country and role both have to match — there's no partial access.

Can guest (logged-out) users purchase restricted products?

Only if you enable guest access for that product. When enabled, guests can buy from allowed countries; when disabled, they're blocked regardless of location.

Does the plugin hide the price for restricted visitors?

Yes — you can hide the price and disable Add to Cart so restricted visitors never see pricing they're not allowed to purchase at.

Can I completely hide a restricted product instead of just blocking the button?

Yes. Per product, choose to either show the product page with a restriction message, or hide the product entirely — it won't appear on the shop page, in search, or in related products.

Can restricted visitors contact me instead of just leaving?

Yes — you can enable a simple "Interested in this product?" popup. Visitors send you their email and a short message; you're notified by email right away, and every message is saved so you can follow up.

Is the restriction enforced server-side, or just hidden in the browser?

It's enforced server-side. Even if someone tries to bypass the button via a direct link or browser tools, the purchase itself is blocked at checkout.

Can I see which countries or roles are triggering the most restrictions?

Yes — the built-in analytics dashboard shows blocked-attempt counts by product, country, and role, plus a CSV export for deeper analysis.

Extension information

  • PHP version required: 7.4
  • Tested with WordPress: 7.0.2
  • Tested with WooCommerce: 10.9.4
  • Requires at least WordPress: 6.2
  • Requires at least WooCommerce: 6.0

Countries

  • Worldwide

Related Products

Price $279 annually
Rated 3.2 out of 5 stars
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.7 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 $39 annually
Rated 2.8 out of 5 stars
Price $109 annually
Rated 2.6 out of 5 stars
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.