Hi, can anyone tell me how to add the customer's email address to the new order confirmation template? I added the following but it doesn't work.
<td class="method-info">
<h3>{{trans "Customer Email"}}</h3>
<p>{{var order.getCustomerEmail()}}</p>
</td>
Thanks,
Solved! Go to Solution.
Hello @specialtycases
I checked the same and it's working for me,please cross-check with your template set for for new order from admin:
Store > Configuration > Sales > Sales Email > Order > New order Confirmation
(Check for both logged in and guest user and make sure you have correct value set for store view)
and Edit that template and check if
{{var order.getCustomerEmail()}}
is there or not.
Let us know if issue still persists !
Hello @specialtycases
I checked the same and it's working for me,please cross-check with your template set for for new order from admin:
Store > Configuration > Sales > Sales Email > Order > New order Confirmation
(Check for both logged in and guest user and make sure you have correct value set for store view)
and Edit that template and check if
{{var order.getCustomerEmail()}}
is there or not.
Let us know if issue still persists !
This worked. Thanks.