Format of non-US addresses in order notification emails?
-
I’m converting an e-commerce site to WordPress + WooCommerce. A key part of this transition is updating a FileMaker database that extracts order details from individual order notification email messages.
The emails from my former shopping cart service had address field labeled, e.g., “Company: Acme Widgets”, “State: Maine”, “Postal Code: N2T 1X6”. That made it easy to extract the specific address components from the messages.
The addresses in WooCommerce emails are simply lines of text. For non-US addresses, the last line seems to always be the country name. Using that as a key, my FileMaker code attempts to parse the preceding lines, e.g., the postal code is the last 1 or 2 words of the preceding line.
I tried searching for a specification of WooCommerce address formats. Does such a specification exist?
Alternatively, is there a way to have WooCommerce tag address components like my previous shopping cart?
— Ward
- The topic ‘Format of non-US addresses in order notification emails?’ is closed to new replies.