Country Based Content
Adapt your WooCommerce store to each visitor’s country: redirections, hidden prices or products, country prices, payment and shipping restrictions, local currencies and conditional content. The free edition covers redirections, visibility and pricing; Pro adds the rest.
Description
Country Based Content for WooCommerce adapts your store to each visitor’s country. Redirect visitors, hide prices or products, adjust prices, restrict payment and shipping methods, show prices in the local currency and display content for chosen countries, all from one plugin and one set of rules.
Key benefits
- One plugin instead of several: redirections, content visibility, pricing, checkout restrictions, currencies and conditional content share the same country detection and the same admin screens.
- Real prices, not just displayed ones: price adjustments and currency conversion carry through the cart and checkout.
- Your team always sees the real store: logged-in users and chosen roles can be exempted, and search engine and ad-platform crawlers are exempted from redirections by default.
- Test before you publish: a simulator on each rules screen shows which rule would match, and a developer tool lets you browse as a visitor from any country.
- Uses the geolocation WooCommerce already provides, with no separate geolocation account to open.
Main features
Country-based redirections
- Send visitors from chosen countries to a regional store, a local landing page or a page required by local rules.
- Match a source path with wildcards (
/shop/*) and reuse what matched in the target with$1,$2. - Crawlers are exempted by default, so advertising campaign checks are not redirected.
Content visibility
- Hide prices or the add to cart button for chosen countries, on all products, on product categories or on individual products.
- Pro: hide products completely from the catalog and from search, and show alternative content such as “Not available in your region” in their place.
Price adjustments
- Raise or lower prices by a percentage or a fixed amount, or set a different price per country.
- Adjusted prices are the ones customers pay at checkout.
- Choose whether several matching rules add up in priority order or only the highest-priority rule applies.
Payment and shipping restrictions (Pro)
- Show or hide payment methods by country, for example a local payment method for one country only.
- Show or hide shipping methods by country, for example local carriers for local visitors.
Currency conversion (Pro)
- Show prices in the visitor’s currency, using any currency WooCommerce knows.
- Automatic exchange rates from the Frankfurter API, which republishes European Central Bank reference rates, updated hourly, twice daily, daily, weekly, monthly or yearly, or rates you set yourself.
- Rounding to the nearest 0.10, 1, 5, 10 or 100, plus an amount you add, so a converted price can end in .99.
- Convert an existing order to the customer’s currency from the order screen, with the original amounts kept on the order.
Conditional content shortcode (Pro)
Show any content to some countries and not to others, anywhere a shortcode works:
[cbc_content countries="FR,BE,CH"] Free shipping to France, Belgium and Switzerland! [/cbc_content]
[cbc_content countries="US" match="exclude"] International shipping rates apply. [/cbc_content]
Ready-made country groups save typing: countries="EU", countries="EEA" or countries="GDPR" (the EEA and the United Kingdom).
State and region targeting (Pro)
- Target states, provinces or regions, such as US states, Canadian provinces, German Länder or Australian states:
[cbc_content regions="US:CA,US:TX,US:NY"]Special offer for California, Texas and New York![/cbc_content] - Region targeting needs a GeoLite2-City database from a free MaxMind account. Download the
.mmdbfile, place it on your server and enter its path in the General settings, which show whether the database is usable. MaxMind updates it weekly; the plugin does not download it.
Tax message by country (Pro)
- Show a tax note under product prices, built from the tax rates you have configured in WooCommerce for the visitor’s country, with a
{rate}placeholder in the message.
Rule management
- A rules screen per feature, with up and down controls to set the order in which rules apply.
- A test simulator on each rules screen, and a “Force Country” developer tool.
- Only the features you switch on are loaded.
- Multisite compatible and translation ready, with a French translation included in Pro.
Who this plugin is for
- WooCommerce stores that sell to several countries and need different prices, currencies or payment and shipping options per country.
- Stores that cannot sell some products in some countries, or must show a specific notice there.
- Brands with regional stores or landing pages that want visitors sent to the right one.
- Agencies that set up international stores for clients and want one tool for all of it.
How country detection works
The plugin asks WooCommerce’s geolocation for the visitor’s country. When WooCommerce’s MaxMind GeoLite2 database resolves the visitor’s address, detection runs on your own server: no external call and no visitor data sent to a third party. If that database is not installed (WooCommerce downloads it once you enter a MaxMind license key) and your host or CDN sends no country header, WooCommerce can fall back to an external geolocation service, which receives the visitor’s IP address. To keep detection on your server, enter a MaxMind license key under WooCommerce, Settings, Integration, MaxMind Geolocation.
Currency conversion, when you turn on automatic rates, fetches exchange rates from the Frankfurter API, and Pro checks its license with codefaeries.com. Neither request carries visitor data.
Compatibility
- Requires WordPress 6.0 or higher and PHP 7.4 or higher.
- Requires WooCommerce 8.0 or higher, tested up to WooCommerce 10.8.
- Requires WooCommerce geolocation: under WooCommerce, Settings, General, set “Default customer location” to “Geolocate” or “Geolocate (with page caching support)”. The second option is the one to use with page caching.
Free and Pro
Country Based Content is available as a free plugin on WordPress.org and as this Pro edition. The free edition is not a demo and has no limit on the number of rules. It carries:
- Country-based redirections, with wildcard source paths
- Hiding prices and the add to cart button
- Price adjustments that apply at checkout, with a choice of how several rules combine
- Role, logged-in user and crawler exemptions
- The test simulators and the “Force Country” developer tool
Pro adds:
- Hiding products completely, and alternative content in their place
- Payment and shipping method restrictions by country
- Currency conversion with automatic or manual exchange rates, rounding rules and order conversion
- The conditional content shortcode, with country groups
- State and region targeting
- The tax message by country
FAQ
Does this affect actual checkout prices?
Yes. Price adjustment rules change the product price itself, so customers pay the adjusted price at checkout. Currency conversion (Pro) also applies the converted price, with the rounding you choose.
Does this work with caching plugins?
Yes. Use WooCommerce’s “Geolocate (with page caching support)” option so each visitor’s country is detected even on cached pages.
Can I test rules without affecting real visitors?
Yes. The “Force Country” option in Developer Tools simulates visits from any country, and the test simulator on each rules screen shows which rules would apply.
What happens if a visitor uses a VPN?
The visitor is detected at the VPN’s exit location, as with any IP-based geolocation. Exempting logged-in users makes sure registered customers always see the store as it is.
Will redirections break my advertising campaigns?
No. Search engine and ad-platform crawlers are exempted from redirections by default, so campaign checks see your pages.
Can I target specific US states?
Yes, with Pro. Use codes such as “US:CA” for California or “CA:QC” for Quebec. Region targeting needs a GeoLite2-City database, free from a MaxMind account, that you place on your server and point to in the General settings.
Get started
Install the free plugin to set up redirections, visibility and price rules for your markets. When you need checkout restrictions, local currencies, regional targeting or conditional content, Pro adds them on top of the same rules.
License and activation
After installing the plugin, you will need to enter your license key on the plugin configuration page. This key is provided in your order confirmation email. You can also find it by logging in and visiting the “My Account” page.
Additional information
| Number of domains | 1 |
|---|




