Page 1 of 1
How to add customers email adress in order info mail
Posted: 08 Jul 2021, 17:03
by MAXambient
When someone orders a product in the shop, he get´s the info about his order and we get the info that someone has ordered something. I know tha I can make all adjustments under status (e.g. pending). We want to have the customer`s email adress in the info mail that is sent to us so we can get in direct contact without the need to look for customer´s details in the admin backend.
I´ve tried to put in some placeholders ({name}, {email}, {emailothers}, {b_email_contact}, {s_email}, {s_email_contact}) and the name is displayed right in the info mail but no email.
I can see {email} only, but no data.
How can I make the email adress being displayed?
Re: How to add customers email adress in order info mail
Posted: 10 Jul 2021, 11:22
by Jan
Hi,
you can use following variables:
- {b_email} ... email set in billing address is displayed.
- {s_email} ... email set in shipping address is displayed.
- {bs_email} ... email set in billing address is displayed. If it does not exist then email set in shipping address will be displayed.
- {sb_email} ... email set in shipping address is displayed. If it does not exist email set in billing address will be displayed.
So the best way is to use the variant with bs_ or sb_ to be sure, the email will be really used. If you have used {s_email} and there was not value, this can mean, that customer didn't set shipping address email but only e.g. billing address email under {b_email}. So, to avoid this situation, use bs_ or sb_ ...
Jan
Re: How to add customers email adress in order info mail
Posted: 12 Jul 2021, 08:09
by MAXambient
Hi Jan!
Thanks for your replay.
I´ve tried all variables at the same time but the four, mentioned by you, did not bring any data in the mail.
Can I use all 4 at the same time?
Is there a special synthax to use all 4 at the same time?
I´ve just written them this way:
{b_email}
{s_email}
{bs_email}
{sb_email}
As I´ve done testorder by myself I was sure to have the email details in these orders.
Re: How to add customers email adress in order info mail
Posted: 13 Jul 2021, 11:42
by MAXambient
Hi Jan! Found the way to handle it in the right way. Thanks again for helping Bw Markus
Re: How to add customers email adress in order info mail
Posted: 16 Jul 2021, 16:56
by Jan
Ok