In this tutorial, we will show you how to hide prices based on the country in WooCommerce. It’s a great way to hide or show price per country in your store.
There are several reasons why you may want to hide prices based on the customer’s country in your WooCommerce store. For example, maybe you want the users to contact you via email to inquire about the product prices. Maybe you don’t want to sell your products and want to hide prices and add to cart buttons based on the country. Whatever the case, WooCommerce doesn’t allow you to hide prices by country in WooCommerce.
That’s why we’ll use the Country Catalogs for WooCommerce plugin. It helps you apply restrictions to your products, categories, variations, etc. to hide them from selected countries.
You can download the plugin here: Download Country Catalogs for WooCommerce Plugin - or - Read more
Once installed and activated, you need to open the plugin by going to WooCommerce > Country Catalogs for WooCommerce.
Once there, you need to hit Open global settings.
You have at least two options to hide WooCommerce product prices based on the country.
OPTION 1: Hide all product prices by country
You can easily hide all prices from your store based on the country of the customer.
For example, you can hide your product prices for the United States and show them to the rest of the world.
For this, you need to set these values in the plugin’s global settings:
- Geolocation Method: Show country/state selector in the header
- Fallback geolocation method: IP (Automatic)
- Restriction method: Show product in catalog, disable add to cart, hide prices
- Restrict by: Country and continents
After selecting these values, move to the Products per country tab and select the following values to hide all prices per country:
- Select country: United States. Or any country you need to restrict.
- Sell in selected countries: No
- Click on Save changes
With this, you’ll hide the product prices for users from the United States. They won’t be able to neither see prices nor add them to the cart.
OPTION 2: Hide individual product prices by country
To hide product prices for specific products by country, you need to follow these really simple steps.
a) Open the product you want to edit
You do this by going to Products in WooCommerce and opening the product whose price you want to hide in a specific product.
As you can see, we have an orange T-shirt among a lot of blue ones, so it shouldn’t be hard to notice when the product price hides from the store.
b) Edit the product usage restrictions
Once you open the product, you need to go to the Country Restrictions section and select the country or countries where you want to hide that specific product price.
In Available in selected countries you need to select No. Then, just click on Update to save changes.
Now, if you visit your store, you’ll notice that the product price will appear in all other countries, except in the one you selected.
For example, we’ve hidden our product price just for El Salvador, so visitors from the US should not have any problems visualizing the price of this product.
On the other hand, customers from El Salvador won’t be able to see the product price.
Hiding WooCommerce product prices is really simple with the Country Catalogs for WooCommerce plugin. It allows you to add country restrictions to your products, categories, variations and coupons. You can hide products, prices, add to cart buttons by country, state, province, continent.
You can download the plugin here: Download Country Catalogs for WooCommerce Plugin - or - Read more