Title: Plugin not working anymore
Last modified: July 22, 2022

---

# Plugin not working anymore

 *  [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/)
 * Hi there,
 * since the last update of WordPress I have constant problems on a customer’s site.
   
   Sometimes the products are mixed (with geolocation), that some can be purchased
   even though they are restricted and some of them should be restricted but are
   not.
 * I have emptied all caches several times and switched geolocation off, still the
   options remain for the restricted country, even though from my location nothing
   should be restricted.
 * With geolocation turned off, I should be able to place the item in the cart and
   once I put in the address it should be removed, but that is not happening, I 
   can’t even place it in the cart.
 * In addition, when debugging is turned on, the drop-down list for the countries
   can’t be clicked, it disappears once I move away from the button.
 * I see from other posts, that you can’t recreate these problems but something 
   hasn’t been working right since the last major update.
 * I really don’t want to have to write a custom solution, as your plugin used to
   work good enough. Geolocation is not working. My customer can’t buy the products
   even though he is from the only allowed country, when testing the shop.
 * I will gladly share the link to the site, if you can provide an e-mail address.
 * Help would be very much appreciated.
 * Best regards
    Julian

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

 *  Thread Starter [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15850534)
 * Do you provide a filter for the “removed from cart” message for the country restrictions?
 * I found the filter but can’t get it to work.
 *     ```
       add_filter('cbr_cart_item_removed_message', function($message, $product){
           $message = sprintf( '%s was removed...', $product->get_name() );
   
           return $message;
       });
       ```
   
 * What’s the proper way to use it?
    -  This reply was modified 4 years, 1 month ago by [Julian](https://wordpress.org/support/users/juliangk/).
    -  This reply was modified 4 years, 1 month ago by [Julian](https://wordpress.org/support/users/juliangk/).
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [4 years ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15858622)
 * Hi [@juliangk](https://wordpress.org/support/users/juliangk/),
 * Please update the code and check it again.
 *     ```
       add_filter('cbr_cart_item_removed_message', 'cbr_cart_item_removed_message', 10, 2);
       function cbr_cart_item_removed_message($message, $product) {
           $message = sprintf( '%s was removed...', $product->get_name() );
   
           return $message;
       }
       ```
   
 * Thanks 🙂
 *  [kewinmd](https://wordpress.org/support/users/kewinmd/)
 * (@kewinmd)
 * [4 years ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15860409)
 * Hi, I have the same issue since the last update customers are getting a message
   they can’t purchase even though they’re in the correct country that’s not geo-
   restricted will there be a plugin update to fix the errors?
 * Thanks
 *  Thread Starter [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [4 years ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15860411)
 * Thank you for the code correction.
 * However, the problem is still not solved. Your plugin has great problems with
   caches. I use a Raidboxes site which has it’s own cache and there are constant
   problems with the plugin, even when geolocation is turned off, it just doesn’t
   work sometimes until I clear the cache.
 * This is problematic as customers can ake puchases even though they are not allowed.
 * When I am logged in it works, when I am not it doesn’t work.
    -  This reply was modified 4 years ago by [Julian](https://wordpress.org/support/users/juliangk/).
    -  This reply was modified 4 years ago by [Julian](https://wordpress.org/support/users/juliangk/).
    -  This reply was modified 4 years ago by [Julian](https://wordpress.org/support/users/juliangk/).
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [4 years ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15862239)
 * Hi [@juliangk](https://wordpress.org/support/users/juliangk/),
    You need to exclude
   product listing, single product, and category page from the cache. Thanks 🙂
 *  Thread Starter [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [4 years ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15862526)
 * I excluded the products form the cache, but still the plugin only works in a 
   private window. In my regular browser, I can add restricted products (geolocation
   is turned off) to the cart.
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [4 years ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15866520)
 * Hi [@juliangk](https://wordpress.org/support/users/juliangk/),
    Can you share
   screenshots of the product restriction and general settings of the CBR plugin
   from your store? Thanks 🙂
 *  [kenningar](https://wordpress.org/support/users/kenningar/)
 * (@kenningar)
 * [4 years ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15866801)
 * Hi [@zorem](https://wordpress.org/support/users/zorem/),
 * I’m encountering the same problem as [@kewinmd](https://wordpress.org/support/users/kewinmd/).
 * Products that are normally available in the country I want are no longer available
   for purchase. I saw that Woocommerce had been updated very recently. Could this
   be a side effect?
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [4 years ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15873139)
 * HI [@kenningar](https://wordpress.org/support/users/kenningar/) [@kewinmd](https://wordpress.org/support/users/kewinmd/),
   
   Can you share screenshots of the product restriction and general settings of 
   the CBR plugin from your store? Thanks 🙂
 *  [ACE](https://wordpress.org/support/users/psychic9/)
 * (@psychic9)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15949896)
 * Hi
    same problem for me. The plugin is not working correctly anymore. Too bad.
   Are you updating soon? Best S
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15951801)
 * Hi [@psychic9](https://wordpress.org/support/users/psychic9/),
    Can you share
   screenshots of the product restriction and general settings of the CBR plugin
   from your store? Thanks 🙂

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

The topic ‘Plugin not working anymore’ is closed to new replies.

 * ![](https://ps.w.org/woo-product-country-base-restrictions/assets/icon-256x256.
   png?rev=3645181)
 * [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/)

 * 11 replies
 * 5 participants
 * Last reply from: [Zorem](https://wordpress.org/support/users/zorem/)
 * Last activity: [3 years, 12 months ago](https://wordpress.org/support/topic/plugin-not-working-anymore-54/#post-15951801)
 * Status: not resolved