Title: Plugin Does Not Work
Last modified: April 12, 2021

---

# Plugin Does Not Work

 *  Resolved [wordwoouser](https://wordpress.org/support/users/wordwoouser/)
 * (@wordwoouser)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-does-not-work-187/)
 * Here’s a video that demonstrates all this configuration and behavior:
    [https://drive.google.com/file/d/1m4ABDqVgL_WmefSfjr9oPrL1tfy6OJB_/view?usp=sharing](https://drive.google.com/file/d/1m4ABDqVgL_WmefSfjr9oPrL1tfy6OJB_/view?usp=sharing)
 * Using the free version.
 * WooCommerce -> Settings -> Default customer location is set to “Geocode”. The
   sell to countries are USA and Canada for now.
 * I have configured a MaxMind API Key for geocoding.
 * WooCommerce – Country Restrictions configured with “Catalog Visible (non purchasable)”
   selected and a slightly customized “Product restriction message”.
 * All but a handful of our products are setup as “Product available for selected
   countries” and the United States is the only country added. A few also have Canada
   Added.
 * The video shows this “US only” setup for a product called the Flat-Jack.
 * When I browse in a Chrome Incognito window to the store and look at the Flat-
   Jack detail page there is no “Product restriction message” indicating that I 
   can’t purchase this product outside the USA.
 * When I add the product to my cart and specify a British Columbia, Canada shipping
   location the product remains in my cart despite being a “USA only” product in
   the settings.
 * When I proceed to the checkout, same.
 * However, if I leave the cart/checkout and visit the the product page again, I
   get a message that the product has been removed from my cart because I can no
   longer purchase it but it does not indicate a country restriction or use the “
   Product restriction message” which would be awfully confusing to users.
 * Also, if I use a VPN to replicate being outside the USA, I do not see the “Product
   restriction message” on product detail pages configured to be sold only in the
   USA.
 * What can be done to get this to work properly:
    1) indicate that the product 
   is not available (use the “Product restriction message”) when loading a product
   detail page for a product configured to be USA only. 2) remove the product with
   a relevant message when someone chooses a country as their shipping address in
   the cart or checkout page that is not allowed on the product.
 * Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-does-not-work-187/#post-14310561)
 * Hi, I noticed that you already gave a 2 stars review for the plugin.
    it always
   funny to see users that think that first giving a bad review and then expecting
   to get our help. Good luck!
    -  This reply was modified 5 years, 2 months ago by [Zorem](https://wordpress.org/support/users/zorem/).
 *  [rdimaggio](https://wordpress.org/support/users/rdimaggio/)
 * (@rdimaggio)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-does-not-work-187/#post-14315341)
 * He is right your plugin does not work, I installed and configured it correctly.
   Go back to programming school.
 *  Thread Starter [wordwoouser](https://wordpress.org/support/users/wordwoouser/)
 * (@wordwoouser)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-does-not-work-187/#post-14315399)
 * Yes, I gave a two star review immediately after posting this. Also worth noting,
   this is a duplicate of the following earlier support request from over a week
   ago that was ignored:
    [https://wordpress.org/support/topic/strange-behavior-23/](https://wordpress.org/support/topic/strange-behavior-23/)
 * I’m glad you’re amused by the two star review. I rated it with two stars instead
   of one because it’s a great concept with a good UI/UX. It just doesn’t work quite
   right. However, I believe it has a ton of potential and would solve a real problem
   for WooCommerce merchants if development continued.
 * Your message makes it sound like you don’t intend support users who rate the 
   plugin below some “star” threshold which is a shame. We have found an alternative
   that is working well but I wish you good luck as well.
 * Thanks
    -  This reply was modified 5 years, 2 months ago by [wordwoouser](https://wordpress.org/support/users/wordwoouser/).
 *  [Luca britecode](https://wordpress.org/support/users/lucac2cg/)
 * (@lucac2cg)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-does-not-work-187/#post-14327944)
 * Hi Zorem,
 * I have a similar problem.
 * Using the free version.
 * WooCommerce -> Settings -> Default customer location is set to “Geocode”. The
   sell to countries are USA and Canada for now.
 * I have configured a MaxMind API Key for geocoding.
 * WooCommerce – Country Restrictions configured with “Catalog Visible (non purchasable)”
   selected and a slightly customized “Product restriction message”.`
 * I have several products that are set up to only be sold in the US but when I 
   visit this Product details pages from the US I get the product restriction message.
 * Any help would be greatly appreciated.
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-does-not-work-187/#post-14333755)
 * Hi, it might be that you check it as admin and it uses the country from your 
   account.
    Try to check the option to force geolocation in the plugin settings
   and enable the debug mode so you can change the country from the WordPress admin
   bar.
 *  [sirrahikkala](https://wordpress.org/support/users/sirrahikkala/)
 * (@sirrahikkala)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-does-not-work-187/#post-14341679)
 * Please make it so that if admin or store manager role is logged in, the restrictions
   are NOT applied. It would make the testing and maintaining the store much easier.
   It’s only one line of code.
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-does-not-work-187/#post-14341702)
 * Ok, thanks for the suggestion, you can add it to the CBR suggestions board – 
   [https://zorem.canny.io/country-based-restrictions](https://zorem.canny.io/country-based-restrictions)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Plugin Does Not Work’ is closed to new replies.

 * ![](https://ps.w.org/woo-product-country-base-restrictions/assets/icon-256x256.
   png?rev=2808588)
 * [Country Based Restrictions for WooCommerce](https://wordpress.org/plugins/woo-product-country-base-restrictions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-country-base-restrictions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-country-base-restrictions/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-country-base-restrictions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-country-base-restrictions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-country-base-restrictions/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [Zorem](https://wordpress.org/support/users/zorem/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-does-not-work-187/#post-14341702)
 * Status: resolved