WooCommerce – How to Show Different Store Menu by Country

In this tutorial, we want to show you how to create different store menu for different countries. We’ll do this by configuring our product categories to appear in different countries.

For example, imagine you have these four categories:

  • My category 1
  • My category 2
  • My category 3
  • My category 4

We can easily create a store menu for the USA in which customers will only see categories 1 and 2, and a store menu for El Salvador in which customers will only see categories 3 and 4.

Of course, if somebody from any of those countries visits your store without any restriction, that person will see all four categories on the store menu.

In order to create different store menu by country, we need to follow these simple steps:

1- Install the WooCommerce Advanced Country Restrictions plugin

This plugin allows you to create different country restrictions for your WooCommerce store. For example, you can hide product prices, hide products from the catalog, hide categories, hide variations, etc.

You can download the plugin here:

Download Country Catalogs for WooCommerce Plugin - or - Read more

2- Open the list of categories

Once you install the plugin, you need to go to WooCommerce > Advanced Country Restrictions and click on Open list of categories.

3- Edit your category country restrictions

Once you click the Open list of categories, you’ll see your WooCommerce product categories.

We have four categories with seven products each. Of course this is just an example, you may have more categories, and they can have as many products as you want.

What we need to do is select which categories we’ll hide from El Salvador (1 and 2) and which we’ll hide from the USA (3 and 4).

a) Hide “My category 1” and “My category 2” from El Salvador

To hide these categories from El Salvador, we need to repeat the following steps in both categories.

  • Open the category
  • Scroll down to the Country restrictions section and set the following values.
  • Select countries: El Salvador
  • Available in selected countries: No
  • Apply this to: Category and products

Once you’re done with the first category, repeat the same steps with all other categories you want.

b) Hide “My category 3” and “My category 4” from the USA

Once you hide your categories from country 1 (El Salvador in this example), you need to hide these categories from country two (United States in this example). Just follow these steps:

  • Open the category
  • Scroll down to the Country restrictions section and set the following values.
  • Select countries: United States
  • Available in selected countries: No
  • Apply this to: Category and products

Once you’re done with the first category, repeat the same steps with all other categories you want.

4- Add the categories to the store menu

Once you have hidden the categories from the countries, you need to add them to the site menu. For that, go to Appearance > Menus. Once there, just select the four categories and click on Add to menu and then click on Save. It’s that simple.

5- Configure the restriction method

For this, go to WooCommerce > Advanced Country Restrictions and click on Open global settings in order to configure your products restriction method.

Once there, you need to select these values:

  • (OPTIONAL) Geolocation method: Show country selector in the header (We’ll use this to show you the results)
  • Restriction method: Hide product from the catalog
  • Click on Save changes

6- See the result

Now, somebody visiting your store from El Salvador will only see categories 3 and 4 on the menu because categories 1 and 2 are hidden.

Also, people visiting your store from the USA will only see categories 1 and 2 on the menu because categories 3 and 4 are hidden.

Done!

As you can see, creating different store menu by country takes just some simple steps. The products belonging to the categories you’ve hidden will disappear from the site. You don’t need to use any PHP snippet nor download difficult plugins.

You can download the plugin here:

Download Country Catalogs for WooCommerce Plugin - or - Read more