Country Restrictions for WooCommerce lets merchants restrict products, prices, add-to-cart or payment methods based on the customer’s country. Geo-IP detection identifies the visitor’s region automatically and the restriction engine applies the matching rules — region-specific catalogs, region-specific pricing, region-specific payment methods.
I built this for stores that operate across borders where the right product, price or payment method depends on geography. The plugin works with the standard MaxMind geo-IP integration in WooCommerce, so the same data source the rest of the store uses drives the restriction logic.
The problem it solves
International ecommerce means selling some things in some places and not others. Regulatory restrictions, distribution agreements, licensing limits — there are dozens of reasons why a SKU should be invisible to certain countries or why a payment method should only show up in specific regions. WooCommerce ships with country-aware shipping zones but barely any equivalent at the product or payment-method layer.
The plugin gives merchants a clean rule-builder for country-based restrictions across every part of the storefront that matters.
What the plugin does
A full geo-aware restriction layer for WooCommerce:
- Restrict products by country — hide or block specific products for specific regions
- Restrict categories by country — apply restrictions to entire categories
- Restrict prices by country — override pricing per region for international list prices
- Restrict add-to-cart by country — keep the product visible but block purchase from certain regions
- Restrict payment methods by country — show region-appropriate payment options only
- Geo-IP detection on first visit — automatically identify visitor country via MaxMind
- Customer-country override — once logged in, the customer’s billing country wins over IP
- Whitelist or blacklist mode — flexible “allow only these countries” or “block these countries” rules
How it is built
Country detection integrates with the WooCommerce geo-IP cache (MaxMind) so the plugin shares the same data source as the rest of the store rather than firing additional IP lookups. Product and category restrictions apply at the query layer through pre_get_posts filters, so restricted items never enter the result set. Payment method restrictions hook into woocommerce_available_payment_gateways to remove disallowed gateways before checkout renders. Pricing overrides use the standard pricing filter chain.
The plugin is HPOS-compatible, fully translatable, and respects logged-in customer billing addresses as the source of truth once authentication is established.
Marketplace adoption
A 4.5-star rating across 16 reviews on the official WooCommerce Marketplace reflects an international customer base that depends on the restriction logic working correctly. Distribution-bound brands, licensed products, regulated categories — these are merchants where a missed restriction can cost a contract.
- Marketplace rating: 4.5 stars — based on 16 customer reviews on the official WooCommerce Marketplace
- Active international customer base — used by stores selling across borders with regional rules
- MaxMind geo-IP integration — shares data with the WooCommerce geo-IP cache, no extra lookups
- Multi-restriction surface — products, pricing, payment and add-to-cart all controllable per country
- Multi-year tenure on the marketplace — continuously maintained through WooCommerce releases
Need a custom WooCommerce plugin built like this?
I build production-grade WooCommerce plugins like the ones I shipped on the official WooCommerce Marketplace — geo-aware, HPOS-compatible and engineered to enforce restrictions consistently across every storefront surface. If you need custom geo logic inside WooCommerce, let’s talk.
See my WooCommerce plugin development service