WooCommerce – How to Hide Products by Country

In this tutorial, we will show you how to hide WooCommerce products by country. In this way, we will create catalogs by country because we will be able to show certain products to specific countries, and hide products for other countries.

Whatever the case, you may suddenly need to hide products by country. Imagine you receive a notification that some of your products have been banned in a country. You cannot sell them there anymore, just because the government of that country has said they no longer allow your products to be sold there. If you continue, then you’ll have to pay high taxes.

That’s not good and you need a quick solution to hide WooCommerce products by country. However, WooCommerce doesn’t allows you to create product catalogs based on the country of the customer.

Country Catalogs for WooCommerce

That’s why we’ll show you how to hide WooCommerce products by country, using the Country Catalogs for WooCommerce plugin.

Country Catalogs for WooCommerce allows you to create product catalogs based on the customer’s country. You can create different stores per country using the same WordPress site. Just hide or show products in the countries you want.

You can download the plugin here:

Download Country Catalogs for WooCommerce Plugin - or - Read more

Once you’ve installed the Country Catalogs for WooCommerce plugin, follow these steps to hide products by country.

Set up the global settings to hide WooCommerce products by country

The first thing we need to do is configure the global settings of Country Catalogs for WooCommerce.

  1. Go to WooCommerce > Advanced Country Restrictions.
  2. Hit Open Global Settings.
woocommerce hide products by country

Once you open the Global Settings, go to General and configure the following values to hide your products by country:

woocommerce hide products by country
  • Geolocation Method: There are different geolocation methods that allow your store to know when to show or hide products:
    1. IP (automatic)
    2. Show country/state selector in the header
    3. Shipping country/state on checkout
    4. Billing country/state on checkout 
  • Fallback geolocation method: This is a secondary geolocation method for when the system doesn’t find the user country with the primary method.
  • What happens when the user location is unknown: When the customer’s country is not known, you can show or hide all the products.
  • Restriction method: Hide product from the catalog
  • Restrict by: Country and continents.
  • Once you’re done, hit Save changes.

Now that you have set up the global settings of the plugin, you have at least two options to hide your WooCommerce products by country.

OPTION 1: Globally hide WooCommerce products by country

The first option you have is to globally hide all your WooCommerce products by country. This means you will completely block a specific country from viewing your products on the WooCommerce store.

  • Select country: Enter the country or countries where you want to hide all your products.
  • Sell in selected countries: No
  • Click on Save changes
woocommerce hide products by country

Once you save the changes, customers from the restricted countries won’t be able to view any products on your store.

The plugin gives you the option to configure a popup asking the customers to select their country when they visit the store.

woocommerce hide products by country

Also, users will be able to select their country on the site’s header.

In this example, we have selected Guatemala, and no products are displayed on the store because we have hidden our WooCommerce products for all the countries in Central America.

woocommerce hide products by country

However, if we select an allowed country such as Canada, all the products in our store will be displayed without problems.

woocommerce hide products by country

OPTION 2: Individually hide specific product by country

Another option is to hide individual products by country. In this case, the restriction won’t be global; instead, we need to open and edit our WooCommerce products individually to hide them by country.

This allows you to create WooCommerce catalogs by country without any problem.

  1. Go to WooCommerce > Products.
  2. Open a product you want to hide by country.

As you see in the screenshot below, we will edit the first product that appears on our WooCommerce store:

woocommerce hide products by country

We have opened that product, and we will hide it for the following countries: Mexico, Colombia, Guatemala. We just need to select the following values:

  • Selected countries: Enter the countries where you want to hide your product.
  • Available in selected countries: No
  • Update the product to save the changes.
woocommerce hide products by country

If you now check your store and select once of the blocked countries, you’ll see that the product doesn’t appear. For example, here we have selected Colombia, a country where our product was hidden, and you can see it doesn’t appear on the store page:

woocommerce hide products by country

However, if we select United States or any other country where our product was not hidden, the product will be displayed without problems:

woocommerce hide products by country

Start hiding WooCommerce Products by country!

The Country Catalogs for WooCOmmerce plugin makes it really simple for you to hide products from the catalog in different countries. You can create different catalogs for different countries without any problems.

You can download the plugin here:

Download Country Catalogs for WooCommerce Plugin - or - Read more