Documented

Product Visibility by Country for WooCommerce

(8 customer reviews)

From: $29.99 / year

Display WooCommerce products by customer country.

$29.99 Single site1 year of updates and support30-day money-back guaranteeBuy
$79.99 Unlimited sites1 year of updates and support30-day money-back guaranteeBuy
Clear

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.

Options

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

General Options

Product Visibility by Country for WooCommerce - General Options

Hide catalog visibility
This will hide selected products in shop and search results. However, products 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
Hide visibility in WooCommerce Blocks
This will hide selected products in blocks created with “WooCommerce Blocks” plugin.
Default: no
Modify query
This will hide selected products completely (including direct link).
Default: no
Modify query: 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 query: 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
Hide products
Enable this if you want to additionally hide products in hidden terms. “Hide product terms” option must be enabled.
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

Advanced Options

Product Visibility by Country for WooCommerce - Advanced Options

Debug mode
This will add log to “WooCommerce > Status > Logs”. Do not enable unless there are any issues with the plugin.
Default: no

“Modify query” Optimization Options

Affects “Modify query” option only. Do not change settings unless there are any issues with the plugin.

Queries
Possible values: Check main query only; Check main and search queries only; Check all queries.
Default: Check main query only
Check post type
Default: yes
Use simple redirect
Default: no

Q. Will the plugin work correctly when caching plugin is installed?

A. Please note that if you have any caching plugins installed, you will need to select "Geolocate (with caching support)" option for "Default customer location" (in "WooCommerce > Settings > General").


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").

8 reviews for Product Visibility by Country for WooCommerce

  1. Manirul Haque

    Hi there,
    I am considering to use this plugin ” Product Visibility by Country for WooCommerce” in the site we are presently developing. The site is a multivendor platform and for that we are using WCFM Marketplace.
    Is your plugin ” Product Visibility by Country for WooCommerce” compatible with WCFM Marketplace?
    Please advise.
    Best Regards.

  2. Marco Revello (verified owner)

    Great plug-in, works perfectly

  3. walker

    Great functionality.

  4. Dave Goff (verified owner)

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

  5. Santiago

    Perfect!!!

  6. Levy

    Great plugin. Simple settings and works perfectly.

  7. Tom

    Does not work

    • Tom Anbinder

      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.

  8. Mayur Mohite

    Having issues not good

Add a review

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

Free version

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

Changelog

1.4.8 - 2022-06-01

  • UPDATE: bump tested versions.

1.4.7 - 2021-09-01

  • UPDATE: added explanatory text around visible/invisible settings.
  • UPDATE: PHP 8 now officially supported.
  • UPDATE: updated .pot file for translations.

1.4.6 - 2021-04-12

  • UPDATE: bump tested versions

1.4.5 - 2021-01-21

  • FIX: check if post__not_in is empty to avoid possible PHP error (thanks to Ricardo Reina).

1.4.4 - 2020-09-17

  • UPDATE: bump tested versions

1.4.3 - 2020-08-26

  • UPDATE: display our settings in WC status report.
  • UPDATE: updated .pot file for translations.
  • UPDATE: updated updater.

1.4.2 - 2020-06-13

  • UPDATE: bump tested versions

1.4.1 - 2020-03-23

  • UPDATE: bump tested versions

1.4.0 - 2020-02-22

  • NEW: implement software licensing system; allows for one-click updates of the Premium version
  • UPDATE: updated .pot file for translations

1.3.3 - 2020-01-30

  • Dev - Puerto Rico added to the countries list.

1.3.2 - 2020-01-24

  • Dev - Experimental geolocate_via_api() function added (can geolocate city, region, zip etc. by IP).
  • Dev - Product Terms - Hide products - Minor code refactoring.
  • WC tested up to: 3.9.

1.3.1 - 2020-01-20

  • Dev - Advanced Options - "Disable URL" option added.
  • Dev - Code refactoring.

1.3.0 - 2019-12-31

  • Dev - Product Terms - "Hide products" option added.
  • Dev - All admin settings input is sanitized now.
  • Dev - Code refactoring.

1.2.1 - 2019-11-25

  • Dev - General Options - 'Hide visibility in "WooCommerce Blocks"' option added.
  • Dev - Advanced Options - Modify query - "Check main query only" (checkbox) option renamed to "Queries" (select) and "Check main and search queries only" value added.
  • Dev - Advanced Options - Modify query - "Use simple redirect" option added.
  • Dev - Plugin's fields added to WooCommerce export and import products tools.
  • Tested up to: 5.4.

1.2.0 - 2019-11-12

  • Dev - Optimization - product_by_country_pre_get_posts() - Checking for main query now (can be disabled via "Advanced Options > Check main query only").
  • Dev - Optimization - product_by_country_pre_get_posts() - Checking for product query now (can be disabled via "Advanced Options > Check post type").
  • Dev - Optimization - get_country_by_ip() - Saving country by IP now.
  • Dev - Optimization - is_product_visible() - Saving products visibility in array now.
  • Dev - Advanced Options - "Debug mode" option added.
  • Dev - Admin Options - Select box type - Standard - "Currently selected" countries list added to the meta boxes.
  • Dev - Admin settings split into sections and restyled.
  • Dev - Code refactoring.
  • WC tested up to: 3.8.

1.1.7 - 2019-07-25

  • Tested up to: 5.2.

1.1.6 - 2019-04-25

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

1.1.5 - 2019-04-12

  • Dev - General Options - "Hide price" options added.
  • Dev - Admin settings descriptions updated.

1.1.4 - 2019-04-09

  • 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 - 2019-02-10

  • Dev - Modify query - "Redirect URL" option added.

1.1.2 - 2019-02-08

  • Fix - Product Terms - "European Union" option fixed.
  • Dev - Code refactoring.

1.1.1 - 2019-01-04

  • Dev - "Invisible in countries" option moved to the free version.
  • Dev - "Hide product terms" option added to Pro version.

1.1.0 - 2019-11-12

  • 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 - 2019-08-30

  • Initial Release.