WooCommerce – Product Prices per Country or Continent

Are you looking for the best way to show different prices per country in WooCommerce? Maybe you want to show a price for the United States and another price for Canada or the rest of the world. In this tutorial, we’ll show you how to geotarget product prices in WooCommerce by showing different product prices by country.

This is useful if you want to sell products at different prices for different countries. Maybe taxes are higher in Canada than they are in the United States. Maybe one country is richer, and you want to maximize profits. Or maybe intercontinental shipping is more expensive that it is when you sell products in your own continent only.

Whatever the case, we know that adding prices per country or continent is IMPOSSIBLE with WooCommerce.

That’s why we’ll show you how to do it with the WooCommerce Product Restrictions by Location plugin.

This plugin allows you to add product restrictions based on the customer’s location. You can restrict products, variations, categories, and coupons by country, state, province, zip code, or using a custom list of locations (store location, for example).

After installing and activating the plugin, you need to follow the steps below to set prices by country.

Step 1 – Select the global settings

The first thing we need to do is to set the global settings. In this case, we are going to select what we want to restrict and which restriction method we are going to use.

Go to WooCommerce > Product Restrictions by Location.

Now click on Open global settings.

WooCommerce Product Prices per Country or Continent

On the General settings, you need to select these values:

  1. I want to restrict: Tick the Products and variations checkbox.
  2. I want to restrict by: Select the Countries/continents option.
  3. Select the countries you’ll make available for selection. In this example, we will select Canada, Mexico, United States, Central America, and South America. 
  4. Click on Save changes.

WooCommerce Product Prices per Country or Continent

Your customers will have to select any of these options.

Step 2 – Create country attributes for your products

What we will do to show a different price for each country, continent or subcontinent, is that we will create product variations using an attribute called “Country”.

For this, we need to create a product attribute called “Country”.

Go to Products > Attributes and create an attribute called “Country”.

WooCommerce Product Prices per Country or Continent

Step 3 – Set up the “Country” attribute terms

We need to create a country term for each country, continent or sub-continent we added in the global settings.

For this, click on Configure terms and start adding the terms.

WooCommerce Product Prices per Country or Continent

As you can see in the screenshot below, we have added an attribute term for every country and sub-continent we added in the global settings:

  • South America
  • Central America
  • Mexico
  • United States
  • Canada

WooCommerce Product Prices per Country or Continent

Step 4 – Set WooCommerce prices by country

Now you are ready to add prices by country to your WooCommerce products. For this you need to open or create a product.

Note – Make sure that your product is variable and that you create a variation for each term of the “Country” attribute.

In the Attributes tab of your product data:

  1. Select the country attribute
  2. Select all the country terms
  3. Tick the Used for variations checkbox
  4. Click on Save attributes

WooCommerce Product Prices per Country or Continent

Move to the Variations tab and generate a variation for every country attribute.

As you can see below, we have added a variation for every country and sub-continent.

WooCommerce Product Prices per Country or Continent

Now you need to add different prices for each variation and restrict the variation for the rest of countries, continents, subcontinents.

For example, let’s edit the Canada variation:

  • Add the regular price
  • Selected locations: Add all the other countries, continents and subcontinents. Note – Don’t include the variation country here. Example: If you’re editing the “Canada” variation, don’t include “Canada”. Include all other locations only.
  • Available in selected locations: No

WooCommerce Product Prices per Country or Continent

Now we can edit the Central America variation by following the same steps.

WooCommerce Product Prices per Country or Continent

Once you finish editing all the variations, you need to save the changes.

Optional – Hide the “Country” attribute from the product page

When you create variable products in WooCommerce, the product page displays a drop-down field on the customer side, for you to select the attributes you want.

WooCommerce Product Prices per Country or Continent

However, our plugin allows you to automatically hide the country attribute selector, so that your store automatically displays a different price, depending on the country or continent selected by the customer.

If you want to do this, go to WooCommerce > Settings > Restrictions by Location > Variations per location.

Now select these fields:

  • Variations: Select the attribute used for storing the location to hide it: Country
  • Click on Save changes

WooCommerce Product Prices per Country or Continent

The result – WooCommerce prices per country

Our plugin allows you to get the country or continent of the customer in at least two ways.

First, you can display a popup when users visit the store. This popup can have custom logo and message, asking users to select their location.

The locations displayed on the popup will be the locations you selected in the global settings.

WooCommerce Product Prices per Country or Continent

You can also display a dropdown country selector on any navigation menu.

As you can see below, we have selected the United States and the product price is $300.

WooCommerce Product Prices per Country or Continent

However, if we select Canada, the product price is $150.

WooCommerce Product Prices per Country or Continent

If we select Central America, the product price is $200.

WooCommerce Product Prices per Country or Continent

As you can see, adding WooCommerce price per country is possible with the WooCommerce Product Restrictions by Location plugin. You can change prices based on the country by adding a variation for each country, continent or sub-continent.

If you want to create a store that sells products at different pricing for different countries, you can perfectly do it with the WooCommerce Product Restrictions by Location plugin.