Price Based on Country for WooCommerce


Price Based on Country for WooCommerce allows you to sell the same product in multiple currencies based on the country of the customer.

How it works

The plugin detects automatically the country of the website visitor throught the geolocation feature included in WooCommerce (2.3.0 or later) and display the currency and price you have defined previously for this country.

You have two ways to set product’s price for each country:

  • Calculate price by applying the exchange rate.
  • Set price manually.

When country changes on checkout page, the cart, the order preview and all shop are updated to display the correct currency and pricing.


Sell and receive payments in different currencies, reducing the costs of currency conversions.

Country Switcher

The extension include a country switcher widget to allow your customer change the country from the frontend of your website.

Shipping currency conversion

Apply currency conversion to Flat and International Flat Rate Shipping.

Compatible with WPML

WooCommerce Product Price Based on Countries is officially compatible with WPML.

Upgrade to Pro

This plugin offers a Pro addon which adds the following features:

  • Guaranteed support by private ticket system.
  • Automatic updates of exchange rates.
  • Add an exchange rate fee.
  • Round to nearest.
  • Display the currency code next to price.
  • Compatible with the WooCommerce built-in CSV importer and exporter.
  • Thousand separator, decimal separator and number of decimals by pricing zone.
  • Currency switcher widget.
  • Support to WooCommerce Subscriptions by Prospress .
  • Support to WooCommerce Product Bundles by SomewhereWarm .
  • Support to WooCommerce Product Add-ons by WooCommerce .
  • Support to WooCommerce Bookings by WooCommerce .
  • Support to WooCommerce Composite Product by SomewhereWarm.
  • Support to WooCommerce Name Your Price by Kathy Darling.
  • Bulk editing of variations princing.
  • Support for manual orders.
  • More features and integrations is coming.

Get Price Based on Country Pro now


  • WooCommerce 3.4 or later.
  • If you want to receive payments in more of one currency, a payment gateway that supports them.


  • /assets/screenshot-1.png
  • /assets/screenshot-2.png
  • /assets/screenshot-3.png
  • /assets/screenshot-4.png
  • /assets/screenshot-5.png
  • /assets/screenshot-6.png


  1. Download, install and activate the plugin.
  2. Go to WooCommerce -> Settings -> Product Price Based on Country and configure as required.
  3. Go to the product page and sets the price for the countries you have configured avobe.

Adding a country selector to the front-end

Once you’ve added support for multiple country and their currencies, you could display a country selector in the theme. You can display the country selector with a shortcode or as a hook.


[wcpbc_country_selector other_countries_text=»Other countries»]

PHP Code

do_action(‘wcpbc_manual_country_selector’, ‘Other countries’);

Customize country selector (only for developers)

  1. Add action «wcpbc_manual_country_selector» to your theme.
  2. To customize the country selector:
    1. Create a directory named «woocommerce-product-price-based-on-countries» in your theme directory.
    2. Copy to the directory created avobe the file «country-selector.php» included in the plugin.
    3. Work with this file.


How might I test if the prices are displayed correctly for a given country?

If you are in a test environment, you can configure the test mode in the setting page.

In a production environment you can use a privacy VPN tools like TunnelBear or ZenMate

You should do the test in a private browsing window to prevent data stored in the session. Open a private window on Firefox or on Chrome


26 de julio de 2020
I have only one problem That payment gateway doesn't work with it seems like it sends wrong currency code or something
29 de junio de 2020
I'm using the Pro version of this plugin as I needed the automatic conversion price update and I can say that I have no regret purchasing this plugin. Yes, the premium version is a bit expensive with so special offer or discount. But considering the quality of the plugin, I can say you won't regret your decision. The support is also good, not super fast, but you will get good support. Despite so many WP plugin company trying to provide a WooCommerce currency conversion plugin, I am sure you won't find a better plugin than this one. Moreover, it works with almost all major WooCommerce plugins like subscription and supports almost all payment gateways. Even Razorpay supports it which is amazing and mind-blowing. I have nothing else to say. Highly recommended and you can definitely buy the premium version. The free version is mostly as a demo, you won't get the full power of the plugin unless you use the premium version. But if the free version is fulfilling all your needs then you are really lucky as you are getting such a great plugin for free.
28 de junio de 2020
It's funny how currency conversion is able to be so difficult with all the tools and tech available. I tried for years to get currency conversion for my woocommerce store, and without Page Refresh, without the currency reverting if the visitor goes back to the home page, or sometimes another page... They switch to GBP then somewhere down the line, its back on USD.. Or plugins that add ?v=3wpo9fjwoifj url parameters to "work with page cache" which also "may" effect page load performance, and what if someone shares the URL on Facebook with that url parameter there.. its just, annoying.. Finally, Price Based on Country for WooCommerce saved me... I can finally offer seemless currency conversion. *** Please add native support for FLAG icons 😉 Thank you!
23 de junio de 2020
This plugin saved my time as it worked correctly as expected also the plugin author is supportive for the issues you face while using the plugin. Thanks Oscar.
18 de junio de 2020
Had a tiny issue, Oscar helped me in quick time. Easy to use, plug and play. Thanks guys!
Leer todas las 189 reseñas

Colaboradores y desarrolladores

«Price Based on Country for WooCommerce» es un software de código abierto. Las siguientes personas han colaborado con este plugin.


«Price Based on Country for WooCommerce» ha sido traducido a 1 idioma local. Gracias a los traductores por sus contribuciones.

Traduce «Price Based on Country for WooCommerce» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

2.0.10 (2020-08-04)

  • Fixed: Plugin causes an error on the «Hand-picked Products» block. Thanks @blogjunkie

2.0.9 (2020-07-07)

  • Added: Tested up WooCommerce 4.3.
  • Tweak: Improve the compatibility with the PayPal Express Checkout by WooCommerce 2.0+ payment method.
  • Tweak: Limit the number of pricing zones displayed on the System Status Report.

2.0.8 (2020-05-28)

  • Added: Tested up WooCommerce 4.2.
  • Fixed: Compatibility issue with WooCommerce Dynamic Pricing by Lucas Stark.
  • Fixed: Checkout issue on PayPal Express Checkout by WooCommerce 2.0+ payment method.
  • Fixed: Geolocation cache support via AJAX does not refresh the «content shortcode» when there are no products on the page.

2.0.7 (2020-05-22)

  • Added: Geolocation cache support via AJAX compatible with Variation Swatches for WooCommerce Pro by Emran Ahmed.
  • Added: Geolocation cache support via AJAX compatible with Flatsome Infinite Scroll.
  • Fixed: PHP error – Undefined function on WooCommerce < 3.6
  • Fixed: Incorrect domain path.

2.0.6 (2020-05-14)

  • Fixed: Deprecated use of implode in the pricing zones table.
  • Added: Improve compatibility with WooCommerce UPS Shipping method.

2.0.5 (2020-05-01)

  • Added: Tested up WooCommerce 4.1.
  • Fixed: The option «Convert by exchange rate» of coupons is not saved on coupon update.
  • Fixed: The geolocation test detects false positives.
  • Tweak: Admin notices improvements.
  • Tweak: Improve compatibility with object cache plugins.

2.0.4 (2020-04-21)

  • Fixed: Issue on the «caching support» option that could affect to discount plugins.
  • Fixed: Geolocation function only returns countries included in the allowed countries option.
  • Tweak: New admin notice after update the «caching support» option.
  • Dev: new filter wc_price_based_country_free_shipping_exchange_rate.

2.0.3 (2020-04-16)

  • Fixed: Bug on WooCommerce Admin (Analytics) query.
  • Fixed: Compatibility issues with WooCommerce Dynamic Pricing & Discounts by RightPress.

2.0.2 (2020-04-11)

  • Fixed: Bug reading the «sale date from» and «sale date to» fields when the value is empty.
  • Fixed: Bug calculating the coupon amount by the exchange rate.
  • Fixed: The geolocation test fails when the external IP is a IP6.
  • Tweak: Display all countries of the pricing zones in the country switcher widget.
  • Dev: new filter wc_price_based_country_allow_all_countries.

2.0.1 (2020-04-09)

  • Fixed: PHP error – undefined function wcpbc_get_overwrite_meta_keys in the «WPML» integration.

2.0.0 (2020-04-09)

  • Required WooCommerce 3.4 or higher.
  • Added: Compatibility with «WooCommerce Admin».
  • Added: Compatibility with «WooCommerce Blocks».
  • Added: Improvements in the product price synchronization: DB updates in the background. No more timeout errors.
  • Added: Remove the frontend JavaScript that refreshes the minicart on country switcher change.
  • Added: Replace the font spinner by a pure CSS spinner (to improve the page load time).
  • Added: Cache the AJAX geolocation response when the site is using a object cache.
  • Fixed: Force mini cart refresh when the pricing zone change by extending the cart hash.
  • Fixed: Refresh the minicart on checkout page when the country change.
  • Fixed: The product shortcode cache does not store a value by pricing zone.

See changelog for all versions.