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
- Hide catalog visibility
- This will hide selected products in shop and search results. However, products still will be accessible via direct link.
- Default:
yes
- Default:
- Make non-purchasable
- This will make selected products non-purchasable (i.e. product can’t be added to the cart).
- Default:
no
- Default:
- Hide visibility in WooCommerce Blocks
- This will hide selected products in blocks created with “WooCommerce Blocks” plugin.
- Default:
no
- Default:
- Modify query
- This will hide selected products completely (including direct link).
- Default:
no
- Default:
- 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
- Default:
- Hide price
- This will hide prices for selected products.
- Default:
no
- Default:
- 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
- Default:
- 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>
- Default:
- Info on archives
- This will output message on archives for selected products.
- Default:
no
- Default:
- 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>
- Default:
[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.
- 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
- Hide product terms
- Enable this if you want to be able to hide product categories and tags.
- Default:
no
- Default:
- Hide products
- Enable this if you want to additionally hide products in hidden terms. “Hide product terms” option must be enabled.
- Default:
no
- Default:
When enabled, “Hide product terms” option will add new options to category and tag edit pages in “Products > Categories > Category” and “Products > Tags > Tag”:
Admin Options
- Admin products list column
- This will add “Countries” column to the admin products list.
- Default:
no
- Default:
- 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
- Default:
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
- Default:
“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
- Default:
- Check post type
- Default:
yes
- Default:
- Use simple redirect
- Default:
no
- Default:
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.
Marco Revello (verified owner) –
Great plug-in, works perfectly
walker –
Great functionality.
Dave Goff (verified owner) –
Exactly what I needed and the developer has been amazingly responsive. I’m very impressed!
Santiago –
Perfect!!!
Levy –
Great plugin. Simple settings and works perfectly.
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.
Mayur Mohite –
Having issues not good