Linux 软件免费装
Banner图

Country Based Restrictions for WooCommerce

开发者 zorem
kuldipzorem
gaurav1092
eranzorem
gehorsam
virendesai
更新时间 2026年9月8日 21:05
PHP版本: 7.0 及以上
WordPress版本: 7.1
版权: GPLv2
版权网址: 版权信息

标签

woocommerce payment gateway geolocation country restrictions product restriction

下载

3.2 1.8.1 3.7.7 3.8.0 3.6.2 1.3 1.4 1.5 1.6 1.7 1.8.2 1.9 2.1 2.2 2.2.1 2.3 2.4 2.4.2 2.4.3 2.4.4 2.4.5 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.6 2.6.2 2.6.3 2.8.7 2.8.8 2.8.9 1.0 1.8 3.4 3.5 3.6.1 3.6.6 3.6.7 3.6.8 3.7.0 3.7.1 3.7.3 3.7.5 3.7.8 3.7.9 1.2 2.6.1 2.6.9 2.9 2.9.1 3.0 3.1 3.3 1.1 2.2.2 2.7.5 2.0 2.4.1 3.6.3 3.6.4 3.6.5 3.7.6 3.6 3.7.4 2.6.5 2.6.6 2.6.8 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.3 2.8.4 2.8.5 2.8.6 2.6.7 2.8.2 2.6.4 3.7.2 3.8.1

详情介绍:

Country Based Restrictions for WooCommerce lets you control exactly which products are visible and purchasable based on your customer's country — using WooCommerce's built-in geolocation engine (MaxMind GeoIP2) for 99.5% accuracy. Whether you're selling region-specific products, dealing with legal compliance restrictions, or managing international distribution agreements, CBR gives you precise control over your catalog by country — without any coding. HPOS Compatible · 5,000+ Active Stores · Free & Open Source What You Can Do How It Works
  1. Install and activate the plugin.
  2. Go to WooCommerce > Shipment Tracking > Country Restrictions to configure the default visibility settings.
  3. Open any product and set the country restriction rule — choose include or exclude, and select the countries.
  4. Customers visiting from a restricted country will see the product according to your chosen visibility mode.
Free vs PRO — What's the Difference? CBR Free gives you per-product country restrictions. CBR PRO adds bulk tools, payment gateway control, and advanced display options for stores managing restrictions at scale. CBR Free includes: CBR PRO adds: 👉 Get CBR PRO Compatible With CBR is tested and compatible with: ⚠️ Important note for caching: Caching plugins (WP Rocket, W3 Total Cache, SiteGround Optimizer) and CDNs can serve cached pages that bypass geolocation detection. Ensure your caching is configured to exclude geolocation cookies and country detection from the cache. See the documentation for setup guidance. Documentation & Support More Plugins by Zorem Explore the full catalog at zorem.com

安装:

  1. Go to Plugins > Add New in your WordPress admin and search for "Country Based Restrictions for WooCommerce".
  2. Click Install Now, then Activate.
  3. Make sure you have configured shipping countries in WooCommerce > Settings > General.
  4. Go to WooCommerce > Country Restrictions to set global visibility defaults.
  5. Edit any product to set per-product country restriction rules.
Alternatively, upload the woo-product-country-base-restrictions folder to /wp-content/plugins/ and activate through the Plugins menu.

常见问题:

How does the plugin detect a customer's country?

CBR uses WooCommerce's built-in country detection. It checks the shipping country the customer enters during checkout first. If no shipping country has been set yet, it falls back to WooCommerce Geolocation (MaxMind GeoIP2), which has 99.5% country-level accuracy.

Can I restrict a product so only customers from specific countries can buy it?

Yes. On any product page, set the restriction rule to "Include" and select the countries that are allowed to purchase. Customers from all other countries will see the product according to your chosen visibility mode (hidden, or visible but not purchasable).

Can I block specific countries from buying a product?

Yes. Set the restriction rule to "Exclude" and select the countries to block. Customers from those countries will be restricted; everyone else can purchase normally.

What happens to restricted customers — do they see the product?

You choose. Three visibility modes are available: hide the product completely from shop and search; hide from shop and search but allow direct URL access; or keep the product visible but replace the Add to Cart button with a custom message.

Can I restrict individual product variations by country?

Yes. CBR supports variation-level restrictions, so you can allow some variations to be purchased in certain countries while restricting others within the same variable product.

Can I restrict products in bulk by category or tag?

Bulk restrictions by category, tag, attribute, shipping class, or globally (all products) are available in CBR PRO.

Can I restrict payment gateways by country?

Disabling specific payment gateways for customers from restricted countries is available in CBR PRO.

Can I hide product prices for restricted countries?

Hiding the product price for restricted countries is available in CBR PRO.

Does CBR work with WPML or Polylang multilingual stores?

Yes. CBR is compatible with WPML and Polylang. Country rules set on a product apply across all language versions of that product.

Will caching plugins interfere with country detection?

Yes — this is a common issue. If your caching plugin serves a cached page, the geolocation check may not run for that visitor. You need to configure your caching plugin to exclude pages with geolocation cookies from the cache. See the documentation for specific instructions per caching plugin.

Does CBR work with HPOS (High-Performance Order Storage)?

Yes. CBR is fully compatible with WooCommerce High-Performance Order Storage (custom order tables).

Does CBR work with WooCommerce Subscriptions?

Yes. CBR supports WooCommerce Subscriptions, including variation-level restrictions on subscription products.

更新日志:

3.8.1 3.8.0 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.7.2 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.6 3.5 3.4 3.3 3.2 3.1 3.0 2.9.1 2.9.0 2.8.9 2.8.8 2.8.7 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 2.8.0 2.7.9 2.7.8 2.7.7 2.7.6 2.7.5 2.7.4 2.7.3 2.7.2 2.7.1 2.7 2.6.9 2.6.8 2.6.7 2.6.6 2.6.5 2.6.4 2.6.3 2.6.2 2.6.1 2.6 2.5.4 2.5.3 2.5.2 2.5.1 2.5