Docs Country Based Restrictions PRO for WooCommerce

Country Based Restrictions PRO for WooCommerce

Country Based Restrictions PRO (CBR PRO) restricts what customers can see and buy in your WooCommerce store based on their country. You can restrict individual products, whole categories, payment gateways, and more — by the customer’s shipping or billing country.

How It Works

Country Detection

The plugin determines the visitor’s country from these sources, in order of precedence:

  • The country the visitor selected — in the Country Detection widget or shortcode (stored in a cookie named country).
  • The customer’s address — the saved address of a logged-in customer, or the address entered at checkout (billing or shipping, depending on the Restriction by country setting).
  • IP geolocation — via WooCommerce’s MaxMind integration, which requires a free MaxMind license key.

Note: the Force geolocation setting makes the plugin detect the country by IP geolocation only, ignoring the saved address of logged-in customers. For the full detail — the MaxMind key, the country cookie, caching, and VPNs — see How CBR PRO Detects the Customer’s Country.

Visibility of Restricted Products

Four catalog visibility modes determine how restricted products appear to customers in a restricted country:

  • Hide Completely — restricted products are completely hidden from your store.
  • Hide Catalog Visibility — restricted products are hidden from the shop and search results, but remain accessible via direct link (and are not purchasable there).
  • Catalog Visible (non purchasable) — restricted products stay visible in the catalog but cannot be purchased; a restriction message is shown instead.
  • Restrict product only on Place Order (Checkout) — products stay visible and can be added to the cart; the restriction applies only when the customer clicks Place Order at checkout.

What PRO Adds Over the Free Plugin

The free Country Based Restrictions plugin restricts individual products. PRO adds:

  • Bulk catalog restrictions by category, tag, attribute, shipping class, custom taxonomy, or globally
  • Payment gateway restrictions by country (including WooPayments and block checkout)
  • Restriction by billing or shipping country, with per-variation rules for variable products
  • Scheduled (time/date-based) restrictions and the Restriction Analytics & Insights Dashboard
  • Country Detection widget and shortcodes, custom restriction messages, 404-page redirect, sort by availability, custom “No products found” message
  • Bypass restrictions for specific users, CSV import/export of restriction rules, HPOS compatibility

Documentation

Getting Started

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

Setup & Configuration

All CBR PRO settings live in one screen in your WordPress admin: WooCommerce → Country Restrictions → Settings...

How CBR PRO Detects the Customer's Country

Every restriction in Country Based Restrictions PRO (CBR PRO) — product visibility, catalog rules, payment gateways — depends...

How to Set Product Restrictions

Product restrictions let you make an individual product available — or not available — for specific countries. Rules...

How to Set Up Bulk Catalog Restrictions

Bulk catalog restrictions apply one rule to many products at once — all products in a category, with...

How to Use the Country Detection Widget

The Country Detection widget displays the detected country to your customers and lets them change it while browsing...

How to Use the Country Detection Shortcode

CBR PRO provides shortcodes to display the country selector anywhere in your store — including on block themes,...

Payment Gateway Restrictions

Payment gateway restrictions show or hide individual payment methods at checkout based on the customer's billing or shipping...

CSV Upload Restrictions

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

Compatibility

Country Based Restrictions PRO works with the standard WooCommerce stack and a wide range of plugins. This page...

Translations

Country Based Restrictions PRO is fully localized and translation-ready. The text domain is country-base-restrictions-pro-addon. Translations for the following...

Code Snippets

CBR PRO provides filter hooks to customize its behavior with a few lines of PHP. Add the snippets...

Changelog

Release history for Country Based Restrictions PRO for WooCommerce. The current version is 4.4.2. Version numbering skips 4.3.4...