Summary

Some orders arrive with a country code Shipstore does not expect, such as UK when the code it wants is GB. Add a Country Translation and the right country is set for you, so you stop picking it by hand on every order.

Before you start

You need Admin access, and you need to know the exact value that is coming in (for example UK) and the country it should become. Shipstore expects two-letter country codes, so a translation is only needed when the value coming in is something else.

Steps

  1. Go to Administration > Translations > Country.
  2. Add a translation. Give it a name, choose the country it should resolve to (for example United Kingdom, code GB), and enter the value that is coming in (for example UK).
  3. Click Save.
  4. Import or reprocess an order that arrives with the old value and check the country on the shipment.

What you should see

An order that comes in with the non-standard value now resolves to the right country on its own, and you no longer have to select it by hand.

If something goes wrong

The order still comes in with no country, or the import fails: the value being sent may not match the translation exactly, or the state code may be wrong too. Check the incoming value character for character, and see the related article on import errors caused by bad field values.

You would rather do it with a business rule: a Country Translation is the simpler and more reliable way to do the same thing. Use the translation.

Related articles

See also: "Imported order fails: a 3-letter state code causes a deserialization error", "Shipment will not rate: missing Ship To state or country", and "Order won't set the service for an imported Ship Via code".