Message template and customer address attributes

2 years ago
Hello,
I need help with Message templates - how to add a new customer address attribute (added by Administration - Configuration - Settings - Customer settings - Address form fields - Custom address attributes) to Message template (eg. OrderPlaced.CustomerNotification / OrderPlaced.StoreOwnerNotification etc.).
2 years ago
davemacblack wrote:
Hello,
I need help with Message templates - how to add a new customer address attribute (added by Administration - Configuration - Settings - Customer settings - Address form fields - Custom address attributes) to Message template (eg. OrderPlaced.CustomerNotification / OrderPlaced.StoreOwnerNotification etc.).

The can be added by using the %Order.BillingCustomAttributes% and %Order.ShippingCustomAttributes% message tokens which can be seen in the list of allowed message tokens on the admin demo site.

Note that this just outputs a block of all the custom address attributes, there isn't currently any built in way of accessing individual custom address attributes.