Example: Products for Specific Regions
In this guide, we will ensure that "Surfboards" are ONLY available to customers in California, United States.
Goal: Restrict sales and visibility of specific local products to users in a defined
geographic area.
Step-by-Step Configuration
-
Create a New Rule
Go to Settings > Product Visibility > Rules and click Add Rule.
-
Set General Info
Title: California Surfboards
Enabled: Yes -
Define What to Hide
Filter Type: Category
Filter Value: Surfboards -
Choose "Show" (Whitelist)
We want to Show this only to allowed locations and Hide from everywhere else.
Visibility Action: Show (Whitelist)
-
Set the Geo Location Condition
Condition Type: Country / State
Operator: IN
Value: California, United States (US:CA)Note: You can select multiple countries or specific states/provinces if available.
-
Save the Rule
Click Save Rule.
Result
- Customers in Vietnam: Can see and buy "Fresh Food".
- Customers abroad (e.g., USA, Japan): Will NOT see "Fresh Food" in the shop or search results.
How does it work? Yeekit Visibility uses WooCommerce's built-in geolocation (based on IP
address) to determine the user's location. Ensure Default customer location is set to
"Geolocate" in WooCommerce > Settings > General.