Add Order Metafield Definitions

Shopify provides the ability to customize data for a specific part of your store. Autoaddress can provide location data for your order object.  

Once you turn on the Setting to retrieve location data, there are additional steps to ensure you get data returned.

To do this, navigate to Settings → Custom Data → Orders. Here you will see a button labeled "View unstructured metafields", click this.

Note: The button will only be visible if any new orders are made after turning on the setting.

If there are no new orders made after enabling the setting, click "Add definition" and ensure Namespace and key is labelled custom.location_coordinates

From here, click "Add definition". Input any name and definition for this metafield, this can be used for any programmatic access of orders that your store requires.

Ensure you also choose the metafield type as "Single line text" and press Save.

The location data field will now be visible on all orders.