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

ConditionWhat It ChecksExample Use
CountryCustomer’s countryHide COD for international orders
Province code / State codeState or province code (e.g., “CA”, “NY”)Different rules per state
City / AreaCity or area nameLocal delivery rules
Zip / Postal codePostal/zip codeBlock specific zones, target areas
Address line 1Street addressDetect specific addresses
Address line 2Apartment, suite, etc.Check if apartment info is provided
Address (line 1 + line 2)Full combined addressPattern matching across full address
P.O. box addressIs the address a PO box? (boolean)Block PO box deliveries
Not P.O. box addressIs it NOT a PO box? (boolean)Apply rules only to street addresses
Parcel locker addressIs it a parcel locker? (boolean)Restrict parcel locker deliveries
Missing house numberNo 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.