3
Answers
Vote up!
0
Vote down!

Confirmation email address formatting

In the confirmation email sent to the customer I am using the token [commerce-order:commerce_customer_billing] to generate the billing address.

However in the email the address is printed as a long string with no spaces between the fields e.g.: NameStreetCityStateCountry

Is it possible to format the address to separate lines?

Asked by: Mikill
on September 11, 2013

3 Answers

Vote up!
0
Vote down!

Hi

Please check the tokens available in

admin/structure/messages/manage/commerce_order_order_confirmation

You can use these tokens for your requirement

Answer by: ajaichandran
Posted: Sep 12, 2013
Vote up!
0
Vote down!

Available token s for your requirement are

Address [message:message-commerce-order:commerce-customer-billing:commerce-customer-address:?] Field "commerce_customer_address". The following properties may be appended to the token: country (Country), name_line (Full name), first_name (First name), last_name (Last name), organisation_name (Company), administrative_area (Administrative area (i.e. State / Province)), sub_administrative_area (Sub administrative area), locality (Locality (i.e. City)), dependent_locality (Dependent locality), postal_code (Postal code), thoroughfare (Thoroughfare (i.e. Street address)), premise (Premise (i.e. Apartment / Suite number))

Example :-
For first name
[message:message-commerce-order:commerce-customer-billing:commerce-customer-address:first_name] ..

Answer by: ajaichandran
Posted: Sep 13, 2013
Vote up!
0
Vote down!

Thank you. I will give that a try.

Answer by: Mikill
Posted: Sep 13, 2013