Linux 软件免费装
Banner图

Yuupee Country Catalog Rules for WooCommerce

开发者 abdoudiba
更新时间 2026年9月1日 13:58
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce geolocation country restriction catalog visibility multi-country

下载

0.4.0

详情介绍:

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

安装:

  1. Upload to /wp-content/plugins/ or install via Plugins → Add New → Upload.
  2. Activate.
  3. Set category rules under Products → Categories.
  4. Set per-product overrides under each product's Product Data → Country Catalog Rules tab.
  5. Optional: customize the unavailable-product message under WooCommerce → Settings → Country Catalog Rules.

常见问题:

Does this replace WooCommerce's own geolocation setting?

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.

What happens if a visitor's country can't be detected?

Restricted products stay visible. The plugin fails open, not closed.

Does this affect product feeds (Meta, Google, TikTok)?

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.

更新日志:

0.4.0 0.3.0 0.2.1 0.2.0 0.1.1 0.1.0