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}}


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

but both come up empty. Is this possible?


Managed to get this by adding:

{{var order.getCustomerEmail()}} 


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

in the transactional email templates in admin


This doesn't work, because the address template is for the address, but the email belongs to the user.

It might work to setEmail on the address BEFORE it is formatted. The event customer_address_format should work for this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.