Directory / plugin

Yuupee Country Catalog Rules for WooCommerce

v0.4.0 · by abdoudiba

Restrict product and category visibility by customer country, reusing WooCommerce's own geolocation instead of a second IP lookup.

About this plugin

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.

Plugin tags