Magento 1.9 – Add Customer Email into Address Templates HTML

customeremailmagento-1.9

I need to show the customer email on my order confirmations in the Shipping Information section. I know it is called in:

System > Configuration > Customers > Customer Configuration > Address Templates

like so: (telephone number as example)

{{depend telephone}}Contact Number: {{var telephone}}

I have tried:

{{depend email}}Email Address: {{var email}}

and

Email Address: {{var order.getBillingAddress().getEmail()}}

but both come up empty. Is this possible?

Best Answer

Managed to get this by adding:

{{var order.getCustomerEmail()}} 

underneath:

{{var order.getShippingAddress().format('html')}}

in the transactional email templates in admin

Related Topic