| 开发者 | lwsdevelopers |
|---|---|
| 更新时间 | 2026年11月21日 04:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[cbc_content countries="FR,BE,CH"], or to every country but some with match="exclude"/wp-content/plugins/codefaeries-country-based-content/ or install directly through the WordPress plugins screenYes. Redirects by country, hiding prices and the add-to-cart button, price adjustments by country, exemptions and the test simulator are free, with no limit on the number of rules. The Pro version adds payment and shipping restrictions, currency conversion, a content shortcode, state and region targeting and more.
Yes. Create a redirection rule with the countries and the target URL. A rule can also target a path on your site, where * matches any characters, and reuse the matches in the target with $1, $2.
Yes. A content rule hides the price, or the add-to-cart button, for the countries you choose, on all products, on specific categories or on individual products.
Yes. A price rule increases or decreases the price by a percentage, adds or subtracts a fixed amount, or sets a different price. Customers pay the adjusted price at checkout.
Yes. It requires WooCommerce 8.0 or higher with geolocation enabled (WooCommerce > Settings > General > Default customer location).
Country detection is done by WooCommerce's geolocation. When WooCommerce's MaxMind GeoLite2 database resolves the address, detection happens locally on your server with no external API call. Otherwise WooCommerce may fall back to an external service (see "External services").
Country-level detection is typically 99%+ accurate. Users with VPNs or corporate proxies may be detected in a different location.
Yes. Price adjustment rules modify the actual product price, so customers pay the adjusted price at checkout. This ensures price consistency throughout the shopping experience.
Yes. The plugin is designed to work with page caching. For best results, use WooCommerce's "Geolocate (with page caching support)" option.
Yes. Use the "Force Country" option in Developer Tools to simulate visits from any country: it applies only to logged-in shop managers and administrators, so your visitors keep their own country. You can also use the Test Simulator on each rules page to preview which rules would apply.
The visitor will be detected based on their VPN exit location. Consider using the "Exempt logged-in users" option so registered customers always see accurate information.
No. The "Exempt bots and crawlers" option (enabled by default) prevents redirections for search engine and ad-platform crawlers, so campaign verification works as expected.
Yes, when WooCommerce's MaxMind GeoLite2 database resolves the visitor's address: the IP address is then used on your server only. The plugin itself does not store personal data and makes no remote request. If the database is not installed or cannot resolve the address, WooCommerce may send the IP address to an external geolocation service (see "External services").