Shipping Address Conditions
Shipping Address conditions let you trigger rules based on where the customer is shipping to. These are among the most commonly used conditions for geo-based payment and shipping customizations.
Shipping country
Section titled “Shipping country”Condition key: shippingCountry
Checks whether the shipping destination country matches any of the selected countries. Only countries that your store is configured to ship to are available for selection.
Operators: Is one of, Is not any of
Use cases:
- Show COD only for domestic orders
- Hide expensive payment methods for international orders
- Apply different shipping rates per region
- Restrict certain payment providers to supported countries
Example: Show a bank transfer option only for Czech Republic and Slovakia:
- Condition: Shipping country → Is one of → Czech Republic, Slovakia
State / Province
Section titled “State / Province”Condition key: provinceCode
Checks the state or province the customer is shipping to. Payflow automatically loads the provinces for the countries your store ships to — you select from a modal window rather than entering codes manually.
Operators: Is one of, Is not any of
Use cases:
- Restrict COD to certain US states
- Offer local delivery only in specific provinces
Shipping city
Section titled “Shipping city”Condition key: shippingCity
Checks whether the shipping city matches your specified value(s).
Operators: Is one of, Is not any of, Text contains, Text does not contain
Use cases:
- Show local pickup for orders destined to your city
- Hide a specific shipping method for cities with known delivery issues
Shipping postcode
Section titled “Shipping postcode”Condition key: shippingPostcode
Checks the shipping postcode/ZIP code. All spaces are automatically removed before matching, so SW1A 1AA and SW1A1AA are treated identically.
Operators: Is one of, Is not any of, Text contains, Text does not contain
Use cases:
- Restrict COD or local delivery to specific postcode areas
- Hide express shipping for postcodes in remote areas
- Apply surcharges via delivery customization for certain postcodes
Example: Show local delivery only for London postcodes:
- Condition: Shipping postcode → Text contains →
E,N,W,SE,SW,EC,WC
First name
Section titled “First name”Condition key: firstName
Checks the first name on the shipping address.
Operators: Is one of, Is not any of, Text contains, Text does not contain, Is empty, Is not empty
Use cases:
- Rarely used directly, but can support custom B2B flows where names carry specific markers
Last name
Section titled “Last name”Condition key: lastName
Checks the last name on the shipping address.
Operators: Is one of, Is not any of, Text contains, Text does not contain, Is empty, Is not empty
Address line 1
Section titled “Address line 1”Condition key: address1
Checks the first line of the shipping address.
Operators: Is one of, Is not any of, Text contains, Text does not contain, Is empty, Is not empty
Address line 2
Section titled “Address line 2”Condition key: address2
Checks the second line of the shipping address. This field may not be visible in all checkout configurations.
Operators: Is one of, Is not any of, Text contains, Text does not contain, Is empty, Is not empty
Company
Section titled “Company”Condition key: company
Checks whether the company name field at checkout contains a value. Useful for distinguishing B2B from B2C orders when not on Shopify Plus.
Operators: Is one of, Is not any of, Text contains, Text does not contain, Is empty, Is not empty
In Checkout Rules, Company also offers Contains a number, Contains non-digits, and the length operators (Length is not, Length is more than, Length is less than).
Use cases:
- Show invoice payment only when a company name is entered
- Apply B2B pricing logic based on company presence
- Use the field for a numeric tax or ID number (for example a renamed “Company” field for an ID number) and block checkout when it is empty or contains anything other than digits: a Checkout Rule with Company Is empty OR Company Contains non-digits, targeted at the Company field. To require the field itself, set Company name to Required in Shopify Settings → Checkout.
Condition key: phone
Checks the phone number entered on the shipping address.
Operators: Is one of, Is not any of, Text contains, Text does not contain, Is empty, Is not empty
Use cases:
- Apply rules based on country calling code prefix (e.g. “+420” for Czech Republic)
Shipping method name
Section titled “Shipping method name”Condition key: shippingMethod
Checks the title of the shipping method the customer has selected at checkout.
Operators: Is one of, Is not any of, Text contains, Text does not contain
Use cases:
- Show a “Pay on Delivery” option only when the customer selects “Local Delivery”
- Hide bank transfer when an express shipping option is selected
Shipping type
Section titled “Shipping type”Condition key: shippingType
Checks the Shopify-defined shipping type of the selected method.
Operators: Is one of, Is not any of
Common values: LOCAL_DELIVERY, PICK_UP, SHIPPING
Use cases:
- Show COD only when the customer selects local delivery or pickup
Number of shipments
Section titled “Number of shipments”Condition key: numberOfShipments
Counts how many shipments Shopify splits the order into at checkout. Shopify splits an order when its products ship from different locations or belong to different shipping profiles, or when the cart mixes subscriptions or pre-orders with one-time purchases. Each shipment gets its own list of delivery methods. A pickup in store is not counted as a shipment.
Operators: At least (≥), At most (≤), Is (==), Is not (!=)
Use cases:
- Hide an express rate when the order arrives in more than one parcel
- Rename a rate to tell customers that their order ships in several parcels
Example: Number of shipments → At least → 2 matches every order that Shopify splits. A hidden or renamed delivery method changes in every shipment that offers it.