What it looks for
The checkout can fill in the city from the postal code. Read from the first checkout step's code: a postal code field, a city field, and an address lookup service (Google Places, Loqate or SmartyStreets) or Shopify's own checkout. Field names are read in English. Nothing is typed, and the order of the fields is not checked.
- Pass: Both fields are there, and an address lookup service or Shopify's checkout is loaded.
- Fail: Not given today. Without an address lookup service, or without both fields, the rule is recorded as not assessable.
How it is checked
- Fresh browser. Signed out, cookies cleared, desktop and mobile viewports, the store's live theme.
- Open a product. A real, in-stock product page, found the way a shopper finds one.
- Add to cart. Default variant, quantity one, then the cart page itself.
- Walk the checkout. From the cart to the payment step. Nothing is ever bought.
- Judge this rule. Against the standard above, on what a shopper can see.
- Record the verdict. Pass, partial or fail, saved with the evidence it was judged on: a screenshot where the rule is visual.
Why it matters
In the US, UK, and most of the EU, the postal code uniquely determines the city and state. Making the buyer type them anyway is duplicate work and a common source of typos.
How to fix it
- Use an address SDK (Google Places, Loqate) that fills City/State when postal code is entered.
- For US-only stores, integrate a free zip-to-city lookup (usps.com API, or a static dataset).
- Order the fields so postal comes first, then City and State auto-fill and can be edited if the buyer disagrees.
What the xfix ux team says about this rule
A postcode can fill in the city. Asking for both asks the shopper to do a lookup you could have done for them.
Drafted by the xfix ux team and approved on 22 Sept 2026.
Sources
How to cite it
"Address lookup that can fill the city from the postal code" (CHK-013), a rule in the xfix ux rulebook. xfix ux, xfix.ai/ux/rules/stores/postal-code-autofills-city/
Questions
What does CHK-013 check?
The checkout can fill in the city from the postal code. Read from the first checkout step's code: a postal code field, a city field, and an address lookup service (Google Places, Loqate or SmartyStreets) or Shopify's own checkout. Field names are read in English. Nothing is typed, and the order of the fields is not checked.
What counts as a pass on CHK-013?
Both fields are there, and an address lookup service or Shopify's checkout is loaded.
What counts as a fail on CHK-013?
Not given today. Without an address lookup service, or without both fields, the rule is recorded as not assessable.
Why does CHK-013 matter?
In the US, UK, and most of the EU, the postal code uniquely determines the city and state. Making the buyer type them anyway is duplicate work and a common source of typos.
How do I fix a fail on CHK-013?
Use an address SDK (Google Places, Loqate) that fills City/State when postal code is entered. For US-only stores, integrate a free zip-to-city lookup (usps.com API, or a static dataset). Order the fields so postal comes first, then City and State auto-fill and can be edited if the buyer disagrees.