Docs Country Based Restrictions for WooCommerce

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:

  • 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.
  • 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:

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

Getting Started

Requirements How to Install the Plugin WordPress Admin → Plugins → Add New → Upload Plugin How to...

Setup & Configuration

Catalog Visibility Settings The visibility options will determine the catalog visibility of restricted products to customers from the...

How to Set Product Restrictions

When editing a product, you can add restriction rules to products from the product data panel > Country...

How to Set Up Bulk Catalog Restrictions

The Bulk Product Restrictions will let you set restriction rules that will apply to all products from a...

How to Use the Country Detection Widget

The Country Detection widget will display the detected shipping country to your customers and will allow them to...

How to Use the Country Detection Shortcode

You can use the following shortcodes to display country detection widgets in your store and enhance the customer...

Payment Gateway Restrictions

The Payment Gateway Restriction is useful when you need to disable payment methods based on the customers billing...

CSV Upload Restrictions

With the bulk upload feature you can use the native WooCommerce Product CSV Importer and Exporter to add restrictions data...

Compatibility

Country Based Restrictions for WooCommerce is designed to work seamlessly with a wide range of WooCommerce plugins, enhancing...

Translations

the CBR PRO plugin is localized/ translatable by default, we added translation to the following languages:

Code Snippets

You can use the following code snippets in your child theme’s functions.php file: Redirect the 404 error page...

Changelog