Country Based Restrictions for WooCommerce

The Country Based Restriction plugin (CBR) use the WooCommerce Geolocation to restrict products on WooCommerce store to sell only to specific shipping countries.

How It Works

Shipping Country Detection:

The plugin determines the visitors Shipping Country by the following:

  1. Checks if the visitor is a logged-in user with an account on your store, the Shipping Country is taken from the customer account Shipping Address.
  2. If the shipping country does not exist for the customer or that it’s a guest customer, the plugin will detect the customer country by the WooCommerce GeoLocation (customer IP)

Note: you can force the plugin to only detect the country only by the WooCommerce GeoLocation.

Select visibility option for the restricted products

There are 3 visibility options that will determine how the restricted products display on your store:

  1. Completely hide the restricted products from your store
  2. Hide from Catalog, this will hide the restricted products from the store catalog but will keep them accessible via direct link.
  3. Catalog Visible – keep restricted products visible on the catalog but non purchasable.
Getting Started

Installing the Country Based Restrictions Pro Note: when you install the Pro version

Setup & Configuration

Catalog Visibility Settings The visibility options will determine the catalog visibility of

Product Restrictions

When editing a product, you can add restriction rules to products from

Bulk Catalog Restrictions

The Bulk Product Restrictions will let you set restriction rules that will

Country Detection Widget

The Country Detection widget will display the detected shipping country to your

Country detection shortcode

You can use the [cbr_location_widget] shortcode to display the country detection widget to your

Payment Gateway Restrictions

The Payment Gateway Restriction is useful when you need to disable payment

CSV Upload Restrictions

With the bulk upload feature you can use the native WooCommerce Product CSV


Country Based Restrictions for WooCommerce is designed to work seamlessly with a


the CBR plugin is localized/ translatable by default, we added translation to

Code Snippets

You can use the following code snippets in your child theme’s functions.php


4.0 3.9 3.8.1 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0.1


Billed annually

Buy Now