WebGoodPeople

Order paid, no address: nine defects in our checkout form

Author: WebGoodPeople, E-commerce development and support team

5 min read
Share

In short. On a shop that sells abroad, two of the first three orders from foreign customers on the new storefront arrived without a delivery address. No errors showed up: the orders were created and paid. The cause was our checkout form. It only accepted a city picked from suggestions, and the suggestions only covered Russia. We found nine defects in that form and fixed the main ones the same evening.

What happened

We build Frontbox, a storefront on top of an existing online store. This is our own mistake in our own product.

The first orders from foreign customers came in and were paid. Two of three had no address. In one, a customer from Spain wrote the address into the order comment. The other had a country and nothing else: no city, no street, no postcode. It cannot ship until someone asks the customer where to send it.

The shop's previous checkout took city, address and postcode as plain text, and in 10 days it had no order without an address. The customers were not the problem.

Why the reports looked fine

Everything looked healthy. The order is created, the money arrives, nobody sees an error. In a report it looks like any other order. The problem surfaces only for the person holding the box.

Our share of the blame is simple: we tested with a Russian address. There was no foreign customer in it.

Where the address got lost: nine defects

An address goes through four steps: country, city, street and postcode, then the server accepts the order. Data was lost at every step.

The path of an address from customer to order, and where it was lost
The path of an address from customer to order, and where it was lost
WhereWhat was wrongWhat it led to
City suggestionsOnly Russian cities were shownBerlin and Paris returned an empty list
City fieldA city was accepted only by clicking a suggestionThe customer saw "City not found" and the typed text vanished
Server and storefrontThe server allowed a typed city, the storefront demanded a suggestionThe server rule had no effect
Field labels"City" and "Postcode" were in Russian on the English and German versionsCustomers saw Russian words
International deliveryDelivery options did not require an addressThe address block never appeared
Server city lookupCities were searched ignoring the countryBerlin and London matched cities in the USA, so delivery would be priced for the USA
City directoryIt has no cities for Germany, France, Spain or ItalyPicking a city from it abroad was impossible
Default countryFirst in the alphabet: AfghanistanA customer in a hurry leaves it, and delivery is priced for the wrong country
Order intakeThe server did not check that the delivery needs an addressA broken form quietly created orders that could not ship

The Berlin to USA match came from testing, not from a real order. The missing addresses came mainly from the missing address block.

Two address modes: the country decides how to ask for the city

  • Russia. The city is picked from a directory. Russian carriers price delivery and pickup points by the exact city.
  • Every other country. The city is plain text. Suggestions help but never block: a city missing from the list stays as typed. Street and postcode are required.

The server picks the mode from the country, so the storefront does not have to guess. In this shop, international delivery was priced by country, so free text does not break the price.

What we fixed that evening

  • Outside Russia the city is plain text and stays put. The hint says: "Not in the list? Just type your city."
  • The address block shows for every delivery option except pickup. Street and postcode are required, labels follow the storefront language.
  • The server looks up the city only inside the selected country.
  • The country is guessed from browser languages. If the guess fails, the customer has to choose.
  • An order without a city or address is rejected with a clear message.

We shipped it in two steps. First the storefront: without the new instructions from the server it behaves as before. Then the server. 31 automated checks now cover the address rules. On the live site we went through the form as a guest without placing an order: an unknown city no longer blocks anything, street and postcode are required.

What is still open

  • Suggestions by first letters. Today a city is found only by its full name.
  • Region and state where an address needs them, such as the USA.
  • Postcode formats per country.
  • An alert to our team when an order arrives without an address.
  • A test order on the live site to confirm the server rejection. We have not placed one: orders there are real.

Check your own store in five minutes

  1. Open your store on a phone, logged out.
  2. Note the default country, then pick another one.
  3. Type a city that is not in the suggestions and move to the next field. The text should stay.
  4. Check that the form asks for a street and a postcode.
  5. Place the order and look at what arrived: country, city, street, postcode.

If the order only has a country, you found what we did.

What next

See how the form works now in the Frontbox demo store: pick a country outside Russia and go through to the address step.

Web Good People

Share

Read next

Articles on adjacent topics — from real projects.

Newsletter

Headless migrations & AI pilots, unpacked

Every 2 weeks — real cases, numbers and architecture decisions. No marketing noise.