I want to show the customer ID in the order confirmation emails.
I know I have to add a variable into the email template something along the lines of :
{{var customer.id}}
But that example doesn't work. I have searched and it doesn't seem to be one of the default variables so how can I do this?
对于其他可能需要的人,您可以使用以下方法:
{{var order.getCustomerId()}}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.