
Yuupee Country Catalog Rules for WooCommerce
v0.4.0abdoudiba · 2026年9月1日 上架
Restrict product and category visibility by customer country, reusing WooCommerce's own geolocation instead of a second IP lookup.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 254
- 最近更新
- 2026年9月1日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+
贡献者
Most country-restriction plugins for WooCommerce bring their own IP
geolocation. If your store already has WooCommerce’s built-in geolocation
active (the MaxMind GeoIP2 database WooCommerce ships with), a second,
independent lookup can disagree with it near a border or behind a VPN.
Yuupee Country Catalog Rules reuses 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
- Restrict a whole product category to specific countries in one place.
- Per-product override for exceptions to a category rule.
- Two modes: hide completely, or show everywhere — including shop/category
grid cards — with an Amazon-style “not available in your country” badge
and a custom message that can include the visitor’s detected country name. - Admin preview mode (
?ccrw_preview_country=XX) — test rules without a VPN. - Fails open on undetected location: never accidentally hides a product from
a real customer because geolocation couldn’t determine their country.