Product Visibility by Country for WooCommerce

(7 customer reviews)

From: $19.99 / year

Display WooCommerce products by customer's country.

Clear

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”.

Frequently Asked Questions

Q. I chose my country on the “Invisible in countries” select box, but the product is visible to me.

A. First check if you have enabled “Modify query” option in plugin settings (this will hide products completely instead of just making them hidden in the catalog for example). If “Modify query” is enabled, but the product is still visible – please check if you are using any caching plugins on your site. If yes – set “Geolocate (with caching support)” option for “Default customer location” in “WooCommerce > Settings > General”. Also please check if you are setting “Visible in countries” option, or only “Invisible in countries” – if you set both, please try setting “Invisible in countries” only (this would be the correct way, i.e. filling in one of two options, i.e. either “Visible in countries” or “Invisible in countries”).

7 reviews for Product Visibility by Country for WooCommerce

  1. Marco Revello (verified owner)

    Great plug-in, works perfectly

  2. walker

    Great functionality.

  3. Dave Goff (verified owner)

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

  4. Santiago

    Perfect!!!

  5. Levy

    Great plugin. Simple settings and works perfectly.

  6. 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

  7. Mayur Mohite

    Having issues not good

Add a review

Your email address will not be published. Required fields are marked *

22 thoughts on "Product Visibility by Country for WooCommerce"

  1. Hi,

    I’m getting an error that just started:
    Warning: array_intersect(): Argument #1 is not an array in /home3/phantomp/public_html/tenthmusearts.com/wp-content/plugins/product-visibility-by-country-for-woocommerce-pro/product-visibility-by-country-for-woocommerce-pro.php on line 118

    1. Figured it out. It’s a conflict with Popup Builder WooCommerce.

    2. Hi Dave,

      Thanks for reporting. We’ve just released new plugin version 1.1.6. After the update notice should be gone even with Popup Builder WooCommerce enabled.

  2. Hi,

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

    Kind regards,
    Arian

  3. 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.

  4. 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

  5. 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?

    1. 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.

  6. 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?

    1. 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.

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

    3. 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. 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

    1. Yes, that is correct.

  8. Hi,

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

    /Julian

    1. 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.

  9. 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

    1. Hi,

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

  10. 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?

    1. 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].

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

    1. Because its not a country. Its a US territory.

Leave a Reply

Your email address will not be published. Required fields are marked *

Changelog

1.1.6 - 25/04/2019

  • Dev - Extra safety checks added (for compatibility with "Popup Builder WooCommerce").
  • Dev - "WC tested up to" updated.

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.

Free version

This plugin is a premium version of free "Product Visibility by Country for WooCommerce" plugin.

Prices & Licenses

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

Installation and Updates

  • 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.
  • To keep WPFactory items up to date, please install WPFactory Helper plugin and enter your site key.

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.