I'm using Magento 2.1.2 for my ecommerce and trying to figure out how to add customer email to "New Invoice for Guest" and "New Order for Guest" email template.

Is there a way to add customer email address to those email templates? If not, is it possible to add it to "Address Templates" (System > Configuration > Customers > Customer Configuration > Address Templates)?

I thought that it might be something like this:

{{var order.getCustomerEmail()}}


{{var email}}

But can't get that to work. Any ideas are welcome!


Just in case anyone stumbles on this post again.

In CE 2.2.3, the following worked for me:

{{var order.getData('customer_email')}}
  • This also worked in 2.3.5. – Webninja Oct 5 '20 at 13:44

you can use

{{trans "%email," email=$order.getCustomerEmail()}}

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.