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

Woocommerce Price by Country

外掛說明

WooCommerce price by country lets you set prices based on customer country. Your define your country groups (as many as you need), then set prices for those groups in each product.

From that point on when a shopper connect’s to site automatically detect country by google ClientLocation api and they’ll see the product prices that you’ve set for that group and be able to buy at those price. Prices appear across the store like any other product, meaning in the main shop page, category pages, cart, and checkout page.

If the product has no country group price for the shopper’s then shoppers can still buy at your regular price if you have a regular price set.

WooCommerce price by country works with simple products and variable products.

Add as many groups as you like using the built-in mini group manager (see the settings screenshot)
Remove an added group at any time
Set individual prices for any of your groups (see the product edit screenshot)

0.2 added

You can choose whether the modifier price is based on the shipping adress or billing
You can add a country selector on your theme with the code: do_action (‘get_pbc_country_dropdown’).

0.3 added
the country groups are modificable

0.31
bug fixes

0.32
bug fixes

0.34
Solved bugfix with wpml and woocommerce multilingual

0.35
Applied GoGlobal program suggestions to our code

0.36
Solved DEPRECATED functions

  • Requires WooCommerce 2.2.x or newer.

螢幕擷圖

  • Settings Section
  • Product edit section

安裝方式

  1. Upload “woocommerce-price-by-country” folder to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. go to woocommerce > settings > integration tab > price by country option.
  4. push add new group button an then add many country groups as you like.
  5. go to product and define it’s price by group.
  6. if you enter a country selector on your theme adds this code: do_action(‘get_pbc_country_dropdown’),
  7. In simple products regular price set to “empty” and in variable products set price to “0”

常見問題集

This plugin supports simple and variable products

Yes, of course.

You can add a country selector somewhere template

Yes, adding “do_action(‘get_pbc_country_dropdown’)”; .

If you use Woocomerce multilingual

you must set “Go to the native WooCommerce product editing screen” in “Product Translation Interface”

使用者評論

閱讀全部 6 則使用者評論

參與者及開發者

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

參與者

將〈Woocommerce Price by Country〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.1

  • Initial release.

0.2

  • Added country selector by do_action(‘get_pbc_country_dropdown’)
  • If country isn’t in any country defined group, price and buy button disapear and is replaced by a configurable message.
  • compatibility with woocommerce 2.1

0.3

  • Added ability to edit groups of countries.
  • Added Choice if the factor that modifies the final price of the product is shipping or billing address.
  • Added a message for when a user is in a country where we no have defined a price.
  • Country selector only shows the countries in which the user has defined to be sold

0.31

  • Dropdown bugfix.

0.32

  • Dropdown bugfix.

0.33

  • price fix in variable products.

0.34

  • Woocommerce multilingual fix, and wpml fix.

0.35

  • Applied GoGlobal program suggestions to our code.

0.36

  • Solved DEPRECATED functions