這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Product Country Restrictions

外掛說明

Do you have products in your WooCommerce shop that you for some reason can’t sell to customers in certain countries?

If you do, this is the plugin for you!

For each product in your shop, you will be able to specify a list of countries that you may sell that particular
product to. Or, you can specify a list of countries that you don’t want to sell to.

Geolocation is used to determine what country the visitor is in, if their country is not in the approved list of countries
for the product, the add-to-cart button will be disabled.

You will need WooCommerce 3.0 or newer.

Does support translation.

螢幕擷圖

  • You can exclude a list of countries for a product
  • Allow a product to be sold only to selected countries

安裝方式

  1. Upload the folder ‘product-country-restrictionsto the/wp-content/plugins/` folder
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Make sure you have setup “shipping countries” in woocommerce general settings.
  4. Edit a product to see your new options

常見問題集

Installation Instructions
  1. Upload the folder ‘product-country-restrictionsto the/wp-content/plugins/` folder
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Make sure you have setup “shipping countries” in woocommerce general settings.
  4. Edit a product to see your new options
Is this well tested?

Not really. But I do believe it will work, most of the time.

Is geolocation reliable?

Somewhat. For this purpose, it should be good enough. A clever user could of course bypass geolocation by using a proxy service.

使用者評論

2017 年 4 月 26 日
It does what it says and was exactly what I was looking for, plus it's nice and simple! Great plugin!
2016 年 10 月 29 日 2 則留言
Out Of Date! Are you going to update your plugin?
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Product Country Restrictions〉的開發相關工作。

參與者

將〈Product Country Restrictions〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.4.3

  • Some improvements for variable products

0.4.1

  • Minor bug fix for WooCommerce 3.0+

0.4

  • You can now set restrictions for product variations
  • Under woocommerce/settings/products/display, you can configure the message that will be displayed when a product is restricted.

0.3

  • Initialization of the Geolocation DB at plugin activation

0.2

  • added check for proper WooCommerce version

0.1

  • Initial version.