Product Visibility by Country for WooCommerce

Rated 3.86 out of 5 based on 7 customer ratings
(7 customer reviews)

Display WooCommerce products by customer's country.

Clear

Author: Tom Anbinder SKU: N/A Category: Tags: , , , Version: 1.1.5; Last updated: 7 days ago; Requires WordPress version: 4.4; Tested up to: 5.1

Description

Product Visibility by Country for WooCommerce plugin lets you show/hide WooCommerce products depending on customer’s country. Customer’s country is detected automatically by IP.

General Options

Plugins settings are located in “WooCommerce > Settings > Product Visibility by Country”.

Product Visibility by Country - General Options

Hide catalog visibility
This will hide selected products in shop and search results. However product still will be accessible via direct link.
Default: yes
Make non-purchasable
This will make selected products non-purchasable (i.e. product can’t be added to the cart).
Default: no
Modify query
This will hide selected products completely (including direct link).
Default: no
Redirect URL
Optionally set URL for hidden products to redirect to (i.e. different from 404 page). Enter full URL (i.e. with http(s)://). “Modify query” option must be enabled. Ignored if empty.
Default: None
Modify widget query
Enable this if you are still seeing hidden products in “Products” widgets.
Default: no
Hide price
This will hide prices for selected products.
Default: no
Hide price: Content
Set this if you wish to replace price with some message. Can be empty. You can use HTML and/or shortcodes here.
Default: None
Info on single product page
This will output message on single product page for selected products.
Default: no
Info on single product page: Content
You can use HTML and/or shortcodes here.
Default:
<p><strong>The product is not available in your country.</strong></p>
Info on archives
This will output message on archives for selected products.
Default: no
Info on archives: Content
You can use HTML and/or shortcodes here.
Default:
<p><strong>The product is not available in your country.</strong></p>
When outputting “… product is not available in your country…” message on WPML sites, you may want to use [alg_wc_pvbc_translate] shortcode for translation, e.g.:

[alg_wc_pvbc_translate lang="DE" lang_text="Das Produkt ist in Ihrem Land nicht verfügbar." not_lang_text="The product is not available in your country."]

or in more complex form:

[alg_wc_pvbc_translate lang="DE"]Das Produkt ist in Ihrem Land nicht verfügbar.[/alg_wc_pvbc_translate][alg_wc_pvbc_translate not_lang="DE"]The product is not available in your country.[/alg_wc_pvbc_translate]

Meta Box

To set countries for each product, check “Product Visibility by Country” meta box on each product’s edit page.

Product Visibility by Country for WooCommerce - Meta Box

You only need to fill in one of two options, i.e. either “Visible in countries” or “Invisible in countries”.
Visible in countries
Select “required” countries here. I.e. product will be visible in selected countries only. If no countries are selected – product will be visible in all countries.
Default: None
Invisible in countries
Select countries to hide product in. If no countries are selected – product will be visible in all countries.
Default: None

Product Terms Options

Product Visibility by Country for WooCommerce - Product Terms Options

Hide product terms
Enable this if you want to be able to hide product categories and tags.
Default: no

When enabled, “Hide product terms” option will add new options to category and tag edit pages in “Products > Categories > Category” and “Products > Tags > Tag”:

Product Visibility by Country for WooCommerce - Product Terms - Term Options

Admin Options

Product Visibility by Country for WooCommerce - Admin Options

Admin products list column
This will add “Countries” column to the admin products list.
Default: no
Select box type
Select box type on product’s edit page and on term’s edit page. Possible values: Standard; Chosen select.
Default: Chosen select
Please note that if you have any caching plugins installed, you will need to set “Geolocate (with caching support)” option for “Default customer location” in “WooCommerce > Settings > General”.

Prices & Licenses

Single siteUnlimited sites
1 year $19.99 / year $29.99 / year
Lifetime $39.99 $59.99

Refunds

We want to ensure that you are 100% happy with your purchase, so if you feel the product(s) you purchased are not the best fit for your requirements and you attempted to resolve issues with product's author, we are offering 30 day money back guarantee refund policy.

7 reviews for Product Visibility by Country for WooCommerce

  1. Rated 1 out of 5

    Mayur Mohite

    Having issues not good

  2. Rated 1 out of 5

    Tom

    Does not work

    • Tom

      Hi Tom,

      Sorry to hear that. Could you please give more details what is not working? And if you have any caching plugins installed (e.g. “W3 Total Cache”) – could you please try disabling it temporary to see if issue disappears. Or alternatively you can try keeping caching plugin enabled and enable “Geolocate (with caching support)” option for “Default customer location” option in “WooCommerce > Settings > General”. This should add “v” parameter to your URL address. Please let me know if that solves the issue.

      Best regards,
      Tom

  3. Rated 5 out of 5

    Levy

    Great plugin. Simple settings and works perfectly.

  4. Rated 5 out of 5

    Santiago

    Perfect!!!

  5. Rated 5 out of 5

    Dave Goff (verified owner)

    Exactly what I needed and the developer has been amazingly responsive. I’m very impressed!

  6. Rated 5 out of 5

    walker

    Great functionality.

  7. Rated 5 out of 5

    Marco Revello (verified owner)

    Great plug-in, works perfectly

Add a review

19 thoughts on "Product Visibility by Country for WooCommerce"

  1. Tim Higgins November 28, 2017 at 9:24 pm #

    Why isn;t Puerto Rico listed in the countries list?

    Reply

    • Ben July 15, 2018 at 6:45 pm #

      Because its not a country. Its a US territory.

  2. KAte November 29, 2018 at 10:00 am #

    Hi there, I successfully use your Product Visibility (by user) plugin and would love to use this one too, but the Country Selection box is just not visible on my product page. I have it activated, the check box in settings is ticked … I can only assume it’s a conflict, but seems odd as your other plugin works fine … Thoughts?

    Reply

    • Tom Anbinder November 29, 2018 at 10:14 pm #

      Hi Kate,

      I’ve just re-checked, but unfortunately couldn’t reproduce the issue – meta box seems to be showing on product edit page as it should. One note though – unlike “Product Visibility by User Role” – by default meta box is displayed below the “Description” meta box (not in sidebar like user role visibility).

      If that doesn’t help – maybe I could login to your server admin and check what’s going on? If that’s fine – my email is [email protected].

  3. systemcrack December 17, 2018 at 11:29 am #

    Hello, I’m really happy with your “Country Product Visibility for WooCommerce Pro” plug-in, just missing one thing because it’s perfect (for me)… adding the possibility to hide an entire category as well.
    If it does not even appear in the category widgets (the category does not appear in the list) .. it would be great !!!

    I would be very grateful if you could add this functionality to your plugin which is essential to me.

    Best regards
    Marco R.

    P.S.
    Forgive my bad English

    Reply

    • Tom Anbinder January 4, 2019 at 6:23 pm #

      Hi,

      If anyone else has similar question – “Hide product terms” option was added in plugin version 1.1.1.

  4. Julian Schön January 24, 2019 at 7:34 pm #

    Hi,

    great product! What countries do you include in the european union?

    /Julian

    Reply

    • Tom Anbinder January 24, 2019 at 8:10 pm #

      Hi Julian,

      Thank you.

      Here is the list of EU countries as currently implemented in our plugin (I’m giving country codes, hope that’s fine):

      'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK'

      Hope that helps. Please let me know if you have any questions.

  5. Julian Schön January 24, 2019 at 8:14 pm #

    Right so if I choose the european union one then it will include all fo the above? I don’t need to type in all, right?

    Thanks!

    /Julian

    Reply

    • Tom Anbinder January 24, 2019 at 9:07 pm #

      Yes, that is correct.

  6. davegoff February 3, 2019 at 2:08 am #

    The visibility option for terms isn’t working for me. Items marked as EU visible only are still showing up unless I apply the setting on the product.

    I have tags set like this:
    Tag 1 “EU Countries” – Visible in : European Union
    Tag 2 “Non-EU” – Invisible in : European Union

    Am I ding something wrong?

    Reply

    • Tom Anbinder February 7, 2019 at 10:04 pm #

      Hi,

      Sorry for a late reply. I’ve just checked and you are correct – there is an issue with selecting “European Union” option for hiding terms. Already fixing it – will release new version in an hour or so. Thanks for reporting.

    • davegoff February 7, 2019 at 10:20 pm #

      Sounds good, thanks for getting back to me!
      Great plugin.

    • Tom Anbinder February 7, 2019 at 10:38 pm #

      Thank you.

      I’ve just released new plugin version 1.1.2. Now the “European Union” option should work properly with terms. Please let me know if something is still not working as expected.

      P.S. If you like the plugin, please consider leaving us a rating.

  7. Dave Goff February 11, 2019 at 12:34 am #

    Thanks!

    I have another issue. IF someone uses a direct link to a product that isn’t available to them, they get an error 404. Is there a way to customize the response specifically to this issue?

    Reply

    • Tom Anbinder February 11, 2019 at 2:33 pm #

      Hi Dave,

      Sure, no problem. I’ve just released new plugin version 1.1.3. After the update you will find new “Redirect URL” option in “WooCommerce > Settings > Product Visibility by Country > General Options > Modify query”. Please let me know if it’s not working as expected or if you have any questions.

  8. Firdaus February 12, 2019 at 5:28 am #

    When I check this box :
    Modify query : This will hide selected products completely (including direct link). I am receiving the below error on my website front page.

    This page isn’t working http://www.lifedigital.com is currently unable to handle this request.
    HTTP ERROR 500

    Reply

  9. Fabricio February 15, 2019 at 4:35 pm #

    Hello,

    My store has two products, one is a physical book (available only in Brazil) and the other is an ebook (available elsewhere).

    With your plugin, it was working fine, until a few days ago.

    Since then, the product that should be visible in Brazil only is invisible anywhere, and the ebook is visible anywhere.

    What is going on? Please, thanks.

    Reply

  10. Arian February 21, 2019 at 3:19 pm #

    Hi,

    Does this also work for product variations? Or only for products. If not, could this function be added soon?

    Kind regards,
    Arian

    Reply

Leave a Reply

Changelog

= 1.1.5 - 12/04/2019 =
* Dev - General Options - "Hide price" options added.
* Dev - Admin settings descriptions updated.

= 1.1.4 - 09/04/2019 =
* Dev - General Options - "Info on single product page" and "Info on archives" options (and [alg_wc_pvbc_translate] shortcode) added.
* Dev - Admin settings minor restyling.

= 1.1.3 - 10/02/2019 =
* Dev - Modify query - "Redirect URL" option added.

= 1.1.2 - 08/02/2019 =
* Fix - Product Terms - "European Union" option fixed.
* Dev - Code refactoring.

= 1.1.1 - 04/01/2019 =
* Dev - "Invisible in countries" option moved to the free version.
* Dev - "Hide product terms" option added to Pro version.

= 1.1.0 - 12/11/2018 =
* Fix - Modify query - Possible pagination issue fixed.
* Dev - Modify query - "Modify widget query" option added.
* Dev - Admin Options - "Select box type" option added.
* Dev - "European Union" added as country selection.
* Dev - Admin settings restyled.
* Dev - Code refactoring.
* Dev - Plugin URI updated.

= 1.0.0 - 30/08/2017 =
* Initial Release.

Installation

  • Buy the plugin 🙂
  • Download plugin's zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to Admin Dashboard > Plugins > Add New > Upload Plugin and browse for downloaded zip file.
  • If plugin is successfully installed - you should see it added to the Plugins list.

Updates

To keep WPFactory items up to date, please install WPFactory Helper plugin and enter your site key.