Location Conditions
Location conditions let you create rules based on where the customer is shipping to. Use them to restrict or customize checkout by country, state, city, or postal code.
Available Conditions
| Condition | What It Checks | Example Use |
|---|---|---|
| Country | Customer’s country | Hide COD for international orders |
| Province code / State code | State or province code (e.g., “CA”, “NY”) | Different rules per state |
| City / Area | City or area name | Local delivery rules |
| Zip / Postal code | Postal/zip code | Block specific zones, target areas |
| Address line 1 | Street address | Detect specific addresses |
| Address line 2 | Apartment, suite, etc. | Check if apartment info is provided |
| Address (line 1 + line 2) | Full combined address | Pattern matching across full address |
| P.O. box address | Is the address a PO box? (boolean) | Block PO box deliveries |
| Not P.O. box address | Is it NOT a PO box? (boolean) | Apply rules only to street addresses |
| Parcel locker address | Is it a parcel locker? (boolean) | Restrict parcel locker deliveries |
| Missing house number | No house number detected (boolean) | Require complete addresses |
Common Setups
Rules by Country
- Country → Equals to → United States: applies only to US orders
- Country → Not equals to → United States: applies to all international orders
- Create multiple rules with different countries for country-specific behavior
Rules by Region
- Province code → Equals to → CA: applies to California
- Zip / Postal code → Starts with → “90”: applies to zip codes starting with 90
Block PO Boxes
- P.O. box address: boolean condition, no value needed — triggers whenever the address is detected as a PO box
Tips
- Country and Province use a selection dropdown — you pick from a list rather than typing.
- Zip / Postal code supports both text matching (starts with, contains) and numeric comparison (greater than, less than), making it very flexible for targeting postal code ranges.
- PO box detection uses pattern matching on the address fields. It catches common PO box formats but may not catch every variation.
- City names can vary in formatting (e.g., “New York” vs “NEW YORK”). Consider using Contains string or turning off case sensitivity for more flexible matching.