Title: Restrict Products by Country &amp; Country Catalogs for WooCommerce
Author: Jose Vega
Published: <strong>2018 年 9 月 10 日</strong>
Last modified: 2026 年 10 月 20 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/woo-country-restrictions-advanced.svg)

# Restrict Products by Country & Country Catalogs for WooCommerce

 作者：[Jose Vega](https://profiles.wordpress.org/josevega/)

[下载](https://downloads.wordpress.org/plugin/woo-country-restrictions-advanced.1.15.5.zip)

 * [详情](https://cn.wordpress.org/plugins/woo-country-restrictions-advanced/#description)
 * [评价](https://cn.wordpress.org/plugins/woo-country-restrictions-advanced/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/woo-country-restrictions-advanced/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/woo-country-restrictions-advanced/#developers)

 [支持](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/)

## 描述

If you want to **restrict products by country for WooCommerce**, this plugin is 
the perfect solution. You can easily **geolocate your store** and **hide products
by country** to dynamically create unique **country catalogs for WooCommerce**.

Are you creating a WooCommerce store and want to sell specific items only to certain
regions?

This plugin lets you manually show or hide simple, grouped, or external products
on a country-by-country basis.

**This plugin works with WPML automatically.**

#### Why do I need special country catalogs?

Simple, to optimize your revenue based on regional markets!

 * Offer **different prices per country** by setting up regional variations.
 * Sell your digital products globally while restricting the physical version to
   your home country.
 * Maintain compliance by hiding products that cannot be legally sold in certain
   countries.

#### How does it work?

When you create or edit products, you will have the option to allow or restrict 
the product for a list of countries.

When a product is available for a country, only users from that location can view
and buy it. Restricted products are completely hidden from the blacklisted country.
They are removed from the shop page, product category, search results, and more.

#### Free Version Use Cases

 * **Country catalogs**: Create custom catalogs for different regions easily.
 * Restrict specific simple, grouped, or external products by country.
 * Hide products by country from the shop catalog and search results.
 * Note: In the free version, you need to edit every product manually. For bulk 
   settings, explore the premium version.
 * The country restrictions can be exported and imported using the native WooCommerce
   export / import tool

#### Premium Features

[Try Premium Plugin for FREE for 7 Days](https://wpsuperadmins.com/plugins/woocommerce-country-catalogs-restrictions/?utm_source=wp.org&utm_campaign=readme.txt&utm_medium=web)

The premium version is built for scale, automation, and advanced control over your
regional stores.

**Advanced Geolocation & User Experience**
 * **Auto detect country IP**: Automatically
identify visitors based on their IP address. * **Country selector dropdown**: Let
users manually switch between country catalogs via a header dropdown or popup. ***
Change catalog by shipping country** or billing country. * Use fallback geolocation
methods (e.g., Shipping Country + Auto Detected IP).

**Variations & Pricing Control**
 * **Hide product variations by country**: Sell
the “large size” in Spain and “small size” in Germany. * **Restrict variations by
region**: Offer physical variations locally and digital variations globally. * **
Different prices per country**: Manage regional pricing by showing different variations.

**Advanced Store Organization**
 * **Hide category by country**: Automatically remove
entire categories from menus and listings (e.g., hide “Music” in Canada, show “Movies”
in USA). * **Regional categories**: Build region-specific navigation structures.***
Restrict coupons by country**: Create discount codes only valid for specific continents,
regions, or countries. * Bulk edit products by category to apply restrictions rapidly.

**Catalog Mode & Checkout Restrictions**
 * **Disable add to cart by country**: 
Show products but prevent purchasing in specific regions. * **Hide product prices
by country**: Create a true catalog mode for unauthorized locations. * **Restrict
checkout by state**: Granular control beyond just countries, down to states or provinces.

**Global Settings & Automation**
 * Apply country restrictions to all products automatically
without editing each one manually. * Hide all variations by attributes (e.g., make
all “size large” available to USA only) across the entire store. * The premium version
works with cache plugins ( WP Rocket, WP Optimize, and any other cache system, including
WP Engine Cache, Cloudflare Cache, Nginx cache, and more)

[Try Premium Plugin for FREE for 7 Days](https://wpsuperadmins.com/plugins/woocommerce-country-catalogs-restrictions/?utm_source=wp.org&utm_campaign=readme.txt&utm_medium=web)

#### Want to restrict products by ZIP or Post Code?

If you need to restrict products by zip code or post code, you can use our other
premium plugin: [Product Restrictions by Zip Code](https://wpsuperadmins.com/plugins/product-restrictions-by-zip-code/)

## 屏幕截图

[⌊Settings in the product editor⌉⌊Settings in the product editor⌉[

Settings in the product editor

## 安装

#### Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers
itself and you don’t need to leave your web browser. To do an automatic install 
log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type the plugin name and click Search Plugins. Once you’ve found
our plugin you can install it by simply clicking “Install Now”.

#### Manual installation

The manual installation method involves downloading our plugin and uploading it 
to your webserver via your favourite FTP application. The WordPress codex contains
[instructions on how to do this here.](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation)

## 常见问题

### What type of products can I use this plugin on?

The free version works with simple, grouped, and external products.

The [premium version](https://wpsuperadmins.com/plugins/woocommerce-country-catalogs-restrictions/?utm_source=wp.org&utm_campaign=readme.txt&utm_medium=web)
works with all product types, allowing you to **hide product variations by country**.

### Can I hide categories by country?

In the **Premium version**, you can restrict entire categories. This allows you 
to build **regional categories** and easily hide all products within a specific 
category for certain countries.

### How do I offer different prices per country?

In the **Premium version**, you can **restrict variations by region**. By creating
different variations for different prices and hiding specific ones by country, you
effectively offer region-specific pricing.

### Does this plugin let me disable add to cart by country?

If you want to show products but prevent purchases, the **Premium version** allows
you to disable the add to cart button. You can even **hide product prices by country**
to create a true catalog mode.

### Can I add a country selector dropdown?

The **Premium version** includes a shortcode and automatic header integration to
display a **country selector dropdown** or popup, allowing users to switch catalogs
manually.

### How does the plugin geolocate your store visitors?

The Free version relies on default WooCommerce geolocation. The **Premium version**
features advanced options to **auto detect country IP**, or dynamically **change
catalog by shipping country** or billing country.

### Is it possible to restrict checkout by state?

The **Premium version** offers granular control, allowing you to restrict products
and checkout down to specific states or provinces, not just countries.

### Can I restrict coupons by country?

The **Premium version** lets you create localized promotions by restricting coupon
usage to specific countries or continents.

## 评价

![](https://secure.gravatar.com/avatar/96378c8921cd0a2d9c3bfe1bdcf01396ef7cb4d0adac1c165ee1a82130f6bbf0?
s=60&d=retro&r=g)

### 󠀁[Support is Awesome](https://wordpress.org/support/topic/support-is-awesome-32/)󠁿

 [AlDash](https://profiles.wordpress.org/aldash/) 2023 年 5 月 2 日

She talked me through set up and helped me solve a caching issue. Supportive and
non-condescending.

![](https://secure.gravatar.com/avatar/d7d05b9ca7bbe9d9d7daefd6294ef479e144a0ecb35af4c8553b8088f3dc5d3a?
s=60&d=retro&r=g)

### 󠀁[Great plugin, awesome support](https://wordpress.org/support/topic/great-plugin-awesome-support-224/)󠁿

 [melisaz](https://profiles.wordpress.org/melisaz/) 2023 年 2 月 14 日

The plugin is great, but its creator is even better who quickly responded to the
email and resolved the issue within 48 hours. Highly recommend!

![](https://secure.gravatar.com/avatar/1e850f7132917ba7ec715fc06e13a928eedcdb4015eaadca3de90be234555582?
s=60&d=retro&r=g)

### 󠀁[Don’t use for coupon restrictions](https://wordpress.org/support/topic/dont-use-for-coupon-restrictions/)󠁿

 [wmassjunction](https://profiles.wordpress.org/wmassjunction/) 2022 年 6 月 30 
日

I signed up for the free trial of the pro version to see if I could set up a coupon
restricted to certain states. The setup was absolutely ridiculously complicated 
and not remotely intuitive. The instructions were not helpful. The coupon worked,
sort of, but the product page displayed an error that the product was not available
in the US even though I had all of the states selected for all of the products and
nothing set to be restricted. Maybe there's a way to get this to work but when I
tried to deactivate to debug it cancelled the trial and there's no way in hell I'll
be paying for this thing. What a waste of my time. I'll never know how many sales
I lost because of that error message either so thanks for nothing.

![](https://secure.gravatar.com/avatar/4b0bbe75a526aedf99ff3bce49717ea23ea7aadcb2365e95bcd751fd82aaa1f7?
s=60&d=retro&r=g)

### 󠀁[nice plugin](https://wordpress.org/support/topic/nice-plugin-4401/)󠁿

 [chihi108](https://profiles.wordpress.org/chihi108/) 2021 年 9 月 8 日

Great plugin, worked straightaway.

![](https://secure.gravatar.com/avatar/631f2dc9d21a13c3f9a9f3e9d9e1c234d5f35e1e38fc90339c67538b5a8f015d?
s=60&d=retro&r=g)

### 󠀁[Good support](https://wordpress.org/support/topic/dont-waste-your-money-14/)󠁿

 [gobonyo74](https://profiles.wordpress.org/gobonyo74/) 2021 年 4 月 13 日

dedicated support team..

![](https://secure.gravatar.com/avatar/416c692adb4ccf68532294f0ed422aa893b5527d81f999aabcda580e52e3b355?
s=60&d=retro&r=g)

### 󠀁[Great Plugin and Even Better Support!](https://wordpress.org/support/topic/great-plugin-and-even-better-support-71/)󠁿

 [d-solmedia](https://profiles.wordpress.org/d-solmedia/) 2020 年 9 月 30 日

This plugin from the get-go was an important part of our entire website. We had 
some issues with it at first, but once we contact support, those issues where typically
resolved within 24hrs. The support for this plugin was truly AMAZING and we wish
other developers would take note. Highly Suggested!

 [ 阅读所有15条评价 ](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/reviews/)

## 贡献者及开发者

「Restrict Products by Country & Country Catalogs for WooCommerce」是开源软件。 
以下人员对此插件做出了贡献。

贡献者

 *   [ Jose Vega ](https://profiles.wordpress.org/josevega/)
 *   [ vegacorp ](https://profiles.wordpress.org/vegacorp/)

[帮助将「Restrict Products by Country & Country Catalogs for WooCommerce」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/woo-country-restrictions-advanced)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/woo-country-restrictions-advanced/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/woo-country-restrictions-advanced/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/woo-country-restrictions-advanced/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/woo-country-restrictions-advanced/)。

## 更新日志

#### 1.15.5 – 2026-10-19

 * CHANGE – Add compatibility with divi ajax filter
 * CHANGE – Optimize WC transient deletion
 * CHANGE – Allow to add safe html to the wc notices texts
 * CHANGE – Updated Freemius SDK

#### 1.15.4 – 2025-07-10

 * CHANGE – Add option to use a popup instead of dropdown in the header
 * CHANGE – Add option to show only the country abbreviation in the header
 * FIX – PHP warnings in php 8.4

#### 1.15.3 – 2025-01-27

 * CHANGE – Update plugin sdk
 * FIX – Minor bug fixes

#### 1.15.2 – 2024-10-24

 * CHANGE – Small bug fixes
 * CHANGE – Update dependencies
 * CHANGE – Apply restrictions to the Google Feed created by the plugin google-product-
   feed

#### 1.15.1 – 2024-04-03

 * CHANGE – Small bug fixes

#### 1.15.0 – 2024-04-03

 * NEW – Added compatibility with the WooCommerce Checkout Block
 * CHANGE – Enable restriction features on product tags
 * CHANGE – Improve compatibility with DooFinder
 * CHANGE – Mark the plugin as compatible with HPOS

#### 1.14.3 – 2023-07-05

 * CHANGE – Updated Freemius SDK
 * FIX – Small bug fixes

#### 1.14.2 – 2023-01-06

 * CHANGE – Updated Freemius SDK
 * FIX – Small bug fixes

#### 1.14.1 – 2022-09-06

 * CHANGE – Allow to use a custom base country for the state restrictions
 * CHANGE – Compatibility with WC 6.8

#### 1.14.0 – 2022-07-26

 * CHANGE – Improve compatibility with WC shortcodes
 * NEW – Add shortcode [wccr_current_country]

#### 1.13.1 – 2022-05-25

 * CHANGE – Cache support – Don’t hide the variation attributes when the product
   is restricted

#### 1.13.0 – 2022-03-01

 * NEW – Allow to display custom page in category pages
 * NEW – Compatibility with WCFM
 * CHANGE – Support for the plugin “PW Woocommerce Advanced Gift Rules”
 * CHANGE – Support for the plugin “Aelia Currency Switcher for WooCommerce”
 * CHANGE – Add option to not allow to close the popup selector without selecting
   a country
 * CHANGE – MInor improvements for the country selector
 * CHANGE – Upgraded Freemius SDK to v2.4.3
 * FIX – When we edited a category with category-only restrictions, it was removing
   the custom restrictions from products using the category
 * FIX – Sometimes the categories aren’t restricted in some listings

#### 1.12.3 – 2021-07-01

 * CHANGE – Selector – Allow to display abbreviations
 * CHANGE – Selector – Automatically change the currency for the plugin “price based
   on country” by Oscar Gare

#### 1.12.2 – 2021-05-12

 * FIX – Country selector does not load sometimes
 * FIX – States restrictions don’t apply correctly when we update the state in the
   cart page

#### 1.12.1 – 2021-03-08

 * CHANGE – Improve translations
 * CHANGE – Improve wprocket integration
 * CHANGE – Improve mobile styles of popup
 * CHANGE – Prevent minor configuration errors
 * FIX – Country selector doesn’t load the first time when we are using cache compatibility

#### 1.12.0 – 2020-12-28

 * NEW – Improve handling of restrictions
 * CHANGE – Improve the header selector dropdown

#### 1.11.2 – 2020-10-27

 * FIX – Cache support loads too late when using the country selector

#### 1.11.1.2 – 2020-09-30

 * Small bug fixes

#### 1.11.1 – 2020-09-25

 * CHANGE – Improve the display of restricted page
 * FIX – Sometimes it applies the restrictions to admins during ajax requests
 * FIX – Sometimes the country selector popup doesn’t close due to conflicts with
   other plugins

#### 1.11.0 – 2020-08-17

 * NEW – Allow to add intro text to the country selector popup
 * FIX – Country selector popup – Sometimes the locations are hidden
 * FIX – The country selector location option in the settings page is not saving
   the right value sometimes
 * FIX – Add support for WP 5.5

#### 1.10.4.1 – 2020-07-31

 * FIX – Category – sometimes the restriction fields are not saved
 * FIX – Apply restrictions to ajax requests

#### 1.10.4 – 2020-06-29

 * CHANGE – Improve the dokan support
 * CHANGE – Improved performance
 * FIX – Country selector popup has wrong height on firefox

#### 1.10.3 – 2020-05-28

 * NEW – Improve the restrictions when creating orders
 * CHANGE – Improve the handling of restricted category pages
 * FIX – Country selector popup – The current name is duplicated sometimes
 * FIX – Sometimes the login form submission fails when using the cache support

#### 1.10.2 – 2020-04-07

 * CHANGE – Improve the cache support
 * CHANGE – Improve the display of the country selector
 * CHANGE – Cache support – Allow to deactivate the allowed variations redirection
 * CHANGE – Improve the handling of inherited category restrictions
 * CHANGE – Improve the design of the settings page
 * FIX – Cache enabled – When the product is restricted and individual variations
   are enabled, the product restriction is not applied
 * FIX – Shipping country syncing – Sometimes it didn’t work
 * FIX – Incorrect country detected sometimes

#### 1.10.1 – 2020-02-25

 * FIX – The dropdown selector is cached in the sessionStorage so any country we
   select is overwritten by the first country cached
 * FIX – Cache support – the body classes are not updated with the ajax call

#### 1.10.0 – 2020-02-25

 * NEW – Allow to select which attribute is used for country restrictions and hide
   the attribute from the user
 * NEW – Add country selector popup
 * CHANGE – Cache support – When the visitor is allowed to buy variations after 
   the ajax call, refresh the price range to not show prices of disallowed variations
 * CHANGE – wccr_country shortcode – Allow to use continents
 * FIX – Cache support – When all the variations are restricted for the user, don’t
   show the add-to-cart form with dropdowns only to later say the variations are
   not allowed. Show the product restricted message and hide the form/prices according
   to the settings
 * FIX – Country selector – When we select continents or regions in the settings,
   the dropdown doesn’t appear in the frontend
 * FIX – When we calculate shipping in the cart page and the country selector is
   synced with the shipping, it doesn’t update the country of the user

#### 1.9.0 – 2020-01-23

 * NEW – Dokan integration – Add option “Products created by vendors are allowed
   for the country of the vendor?”.
 * NEW – WP Optimize Cache integration to keep separate cache by country
 * CHANGE – Add body class with the current shipping and billing country to faciliate
   the debugging/technical support
 * CHANGE – When a product is restricted and the product pages are hidden, remove
   the link from the menus too
 * CHANGE – Added “Aland Islands” to the list of countries
 * CHANGE – Show the custom message in the cart page saying “product not allowed
   for your country” instead of the default message from WooCommerce
 * CHANGE – Cache support – Only hide the prices and add to cart on product pages
 * FIX – Cache support – When the restriction method is “disable add to cart and
   show prices”, the prices are hidden by mistake
 * FIX – Country selector – Don’t reload the page when clicking on the current country
 * FIX – Sync country with shipping/billing country – When we add a product to the
   cart it sets the shipping/billing country with the default, not with the selected
   country in the dropdown
 * FIX – The country selector shortcode doesn’t work for administrators
 * FIX – The [wccr_country] shortcode doesn’t work for administrators
 * Fix – Bug from WC Core. When the option “Default customer location=geolocate”,
   WC sets the shipping/billing country as the full name but we expect a 2 digit
   code
 * FIX – When we edit a category with empty restrictions, it unsets the restrictions
   from individual products using the category

#### 1.8.0 – 2019-12-28

 * NEW – Allow to restrict products per country based on the global attribute
 * NEW – Allow to restrict global attributes by country
 * NEW – Added support for WooCommerce Blocks (gutenberg)
 * CHANGE – Cache support – When the page loads, hide the price and add-to-cart 
   forms and show them after we verified the product is allowed
 * CHANGE – Added support for Sucuri
 * CHANGE – Make the shortcodes available during ajax requests
 * FIX – The global restrictions for variations are not applied when a variation
   doesn’t have a specific attribute value (i.e. it has “any size”)

#### 1.7.0

 * NEW – Added option to restrict by state
 * FIX – Country selector – Sometimes when floating-flags mode is active, the mobile
   version doesn’t have dropdowns
 * FIX – Country selector – Sometimes when the page loads, the country selector 
   links to the home
 * FIX – Modify the is_purchasable product property only when the product is restricted
   to avoid overriding changes from other plugins
 * FIX – Country selector – When we select a country and the page loads, woocommerce
   overwrites it with the previous country using the dropdown from the session storage

#### 1.6.2

 * FIX – When the cart or order is updated, the country selector is updated with
   links having the wrong URL

#### 1.6.1

 * NEW – Added automatic support for WPML
 * CHANGE – Improve the cache support so proxies don’t cache the ajax call
 * CHANGE – When the cart or order is updated, updated the country selector in case
   the current country changed
 * FIX – The general price shown in variable products is cached, so when user switches
   country it’s not reflecting the real price.
 * FIX – The restriction is not executed when the order is updated on rare scenarios
   when using the option “Sync the country selector with the shipping country?”.

#### 1.6.0

 * NEW – Added compatibility with WPRocket
 * NEW – Added option to disable the removal of restricted products in the checkout
   page
 * NEW – Country selector – Use the country from the IP as default country if the
   option is empty
 * NEW – Added feature to restrict coupons by country, continent, or region
 * NEW – Added option to enable restrictions on REST API endpoints
 * NEW – Added limited compatibility with all cache systems (apply restrictions 
   via ajax on product pages).
 * CHANGE – Don’t apply restrictions on REST API endpoints by default
 * FIX – Allow to unset the “Country selector: Default country” option.

#### 1.5.2

 * FIX – Sometimes WC initializes and the helpers haven’t loaded causing a fatal
   error
 * FIX – Added 9 missing flags for the country selector

#### 1.5.1

 * CHANGE – Don’t apply the restrictions to REST API requests
 * FIX – When we save products with empty restrictions, sometimes it saves it as
   an array with empty string making it think it is restricted
 * FIX – Improved the method for reading CSVs, the old caused php warnings when 
   allow_furl_open was disabled

#### 1.5.0

 * NEW – Added shortcode [wccr_country countries=”US,ES” disallowed=”0″]text[/wccr_country]
   to allow to display custom description and short description per country (premium)
 * NEW – Added option to not apply country restrictions to selected user roles (
   premium)
 * NEW – Allow to select entire continents in the backend options as a shortcut
 * NEW – Allow to select entire regions in the backend options as a shortcut
 * NEW – Allow to select entire sub regions in the backend options as a shortcut
 * NEW – Added option to link the country selector with the shipping country (premium)
 * NEW – Added option to change the “product not allowed for your country” message(
   premium)
 * FIX – The “add to cart” was appearing when we viewed a variable product from 
   a restricted country (premium)
 * FIX – Allow to remove the fallback geolocation method, dont force IP as default.(
   premium)
 * FIX – Some UN countries were missing from the list

#### 1.4.0 – 2019-05-01

 * NEW – If we allow to view restricted products, show a notice on the product page
   saying “the product is not allowed for your country”
 * NEW – Added support for all variation types added by other plugins (i.e. subscription_variations)(
   premium)
 * NEW – Added option to use a fallback geolocation method in case the primary geolocation
   can’t find the user country (premium)
 * NEW – Added option to select if the products are shown or hidden when the user
   country is unknown (premium)
 * NEW – If the geolocation method is shipping/billing country, use the country 
   from the logged in user’s profile (premium)
 * NEW – Added option to save multiple rules for hiding/showing variations globally(
   premium)
 * NEW – Added shortcode [vcwccr_country_selector] to display the country selector
   anywhere (premium)
 * CHANGE – Clear the country cookie when we change global settings to avoid geolocation
   errors when testing new settings and using old cookies (premium)
 * CHANGE – Country selector – Use the shipping countries from WooCommerce settings
   for the list as default (premium)
 * CHANGE – Country selector – If we couldn’t find a menu from the settings or automatically,
   show it as a floating dropdown at the top right corner (premium)
 * CHANGE – Country selector – Added compatibility with the uber menu plugin (premium)
 * FIX – Country selector – some countries don’t have flags (premium)
 * FIX – Country selector – initialize a second time to make it work with “late 
   menus” (premium)
 * FIX – Product variations metabox – We can’t remove the selected country, it always
   comes back (premium)
 * FIX – Product variations restriction – Sometimes variations were disabled when
   the country field was empty (premium)

#### 1.3.0 – 2019-03-16

 * NEW – Allow to regenerate country cookie by appending ?wcacr_reset=1 to any url
 * NEW – Settings – Allow to select a page to display when a product is restricted
   so we can display custom messages
 * FIX – Geolocation issue on sites hosted by hostgator
 * FIX – Make products shortcode cache unique for each country

#### 1.2.4 – 2019-03-04

 * FIX – The country selector JS initializes too late preventing it from using the
   theme js logic.
 * FIX – PHP warning

#### 1.2.3 – 2019-03-01

 * FIX – Bug on the restriction logic during checkout

#### 1.2.2 – 2019-02-28

 * CHANGE – Added option to select menus for the country selector

#### 1.2.1 – 2019-02-26

 * CHANGE – Added a link to global settings on the product metabox to improve UI
 * CHANGE – Updated freemius SDK to v2.2.4
 * CHANGE – Clear WooCommerce’s cache when a post’s country restrictions are updated
 * FIX – Country restrictions per category – It doesn’t update all the products
 * FIX – Products weren’t excluded on the frontend if the products list used post__in
 * FIX – Sometimes the country selector doesn’t look like a dropdown when themes
   use a different html structure for dropdown menus
 * FIX – Country restrictions per category – When a product is created/updated, 
   apply the country restrictions from the assigned category
 * FIX – Country restrictions per category – When we remove a category from a product,
   if the category had restrictions, remove the restrictions from the product

#### 1.2.0 – 2019-02-17

 * NEW – Added geolocation option: Use the shipping country (premium)
 * NEW – Added geolocation option: Use the billing country (premium)
 * NEW – Added geolocation option: Display a country selector in the header so the
   user can switch between country catalogs (premium)
 * NEW – Added restriction option: Allow to show products and disable “add to cart”(
   premium)
 * NEW – Added restriction option: Allow to show products and disable “add to cart”
   and hide prices (premium)
 * CHANGE – Category – Separate section with

, it doesn’t standout between custom fields added by other plugins (premium)
 * 
FIX – Categories – Allow to save country field empty and reset product meta (depending
on the “apply to” field) * FIX – Products – Allow to clear the country field to 
reset restrictions

#### 1.1.2 – 2019-02-12

 * CHANGE – Replace our geolocation library with WC’s built-in geolocation class
 * CHANGE – Add country as body class, so we can hide elements by country with css
 * CHANGE – Add non-persistent cache for the disallowed products list to improve
   performance
 * FIX – Exclude common bots from geolocation by user agent.
 * FIX – Improve the product filtering logic. Sometimes hidden products appeared
   on some themes’ lists

#### 1.1.1 – 2018-12-29

 * FIX – when product metabox is saved initially, the country restriction doesnt
   work
 * CHANGE – Improved instructions on welcome page and global settings

#### 1.1.0 – 2018-09-19

 * Added option to restrict individual product categories by country
 * Added option to bulk edit products by category

#### 1.0.1 – 2018-09-19

 * Save countries as string separated by commas instead of serialized array

#### 1.0.0 – 2018-09-09

 * Initial release

## 额外信息

 *  版本 **1.15.5**
 *  最后更新：**4 周前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 3.6 或更高版本 **
 *  已测试的最高版本为 **7.1.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/woo-country-restrictions-advanced/)
 * 标签
 * [country restrictions](https://cn.wordpress.org/plugins/tags/country-restrictions/)
   [geolocalization](https://cn.wordpress.org/plugins/tags/geolocalization/)[woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/woo-country-restrictions-advanced/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  13 条 5 星评价     ](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/reviews/)

## 贡献者

 *   [ Jose Vega ](https://profiles.wordpress.org/josevega/)
 *   [ vegacorp ](https://profiles.wordpress.org/vegacorp/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/woo-country-restrictions-advanced/)