| 开发者 | abdoudiba |
|---|---|
| 更新时间 | 2026年9月1日 13:58 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
WC_Geolocation — the same detection WooCommerce already
uses for shipping, tax, and currency — so there's only ever one source of
truth about where a visitor is.
Features
?ccrw_preview_country=XX) — test rules without a VPN./wp-content/plugins/ or install via Plugins → Add New → Upload.No — it calls WooCommerce's own WC_Geolocation::geolocate_ip() directly.
Make sure a MaxMind license key is configured (WooCommerce → Settings →
Integration → MaxMind Geolocation) so that lookup can actually resolve a
country. If your store is behind Cloudflare or another reverse proxy, the
origin also needs to see the real visitor IP — see the project README's
"Geolocation troubleshooting" section.
Restricted products stay visible. The plugin fails open, not closed.
It hooks into WooCommerce's standard visibility filter, which is the correct integration point, but hasn't been verified against every third-party feed plugin. See the project README for the full list of known v1 limitations.
yuupee-country-catalog-rules-for-woocommerce. Text domain updated to
match. No functional changes; the ccrw internal prefix, option/meta
keys and the ?ccrw_preview_country query parameter are unchanged.wgc to ccrw. First public release under the new name.Requires Plugins: woocommerce dependency header.{country} token, replaced with the visitor's detected
country name.