Codefaeries Country Based Content Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Country Based Content lets you adapt your WooCommerce store to each visitor’s country. Redirect visitors, hide prices or the add-to-cart button, and adjust prices, all based on the country detected locally by WooCommerce.
Key Benefits
- Local geolocation — Uses WooCommerce’s built-in MaxMind GeoLite2 database. No external API calls, no data sent to third parties.
- Applies at checkout — Price adjustments modify the actual product price, so customers pay the adjusted amount throughout the cart and checkout.
- Role exemptions — Exempt logged-in users or specific roles so administrators and shop managers always see the real store.
- Bot-friendly — Search engine and ad-platform crawlers can be exempted from redirections so advertising campaign verification is not affected.
- Clean, modular code — Loads only the features you enable.
Features
Country-Based Redirections
Automatically redirect visitors to specific URLs based on their detected country. Useful for:
- Directing customers to regional stores
- Complying with local regulations (GDPR notices, age restrictions)
- Creating market-specific landing pages
Content Visibility Rules
Control what WooCommerce content visitors can see:
- Hide Prices — Remove price display for specific countries
- Hide Add-to-Cart — Prevent purchases while keeping products visible
- Target all products, specific categories, or individual products
Price Adjustments
Modify prices based on visitor location:
- Apply percentage increases or decreases
- Add or subtract fixed amounts
- Set entirely different prices per country
- Adjustments apply at checkout, not just on display
Testing & Developer Tools
- Test simulator on each rules screen to preview which rule would match
- “Force Country” developer tool to simulate visits from any country
How It Works
The plugin uses WooCommerce’s built-in MaxMind GeoLite2 geolocation database. This means:
- No external API calls — Detection happens locally on your server
- No data sent to third parties
- Fast and reliable — No dependency on external services
- 99%+ accuracy at the country level
Requirements
- WordPress 6.0 or higher
- WooCommerce 8.0 or higher
- PHP 7.4 or higher
- WooCommerce geolocation enabled (Settings General Default customer location)
Screenshots
No screenshots provided
