How to add customers email adress in order info mail

Phoca Cart - complex e-commerce extension
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

How to add customers email adress in order info mail

Post 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?

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to add customers email adress in order info mail

Post 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
If you find Phoca extensions useful, please support the project
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

Re: How to add customers email adress in order info mail

Post 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.
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

Re: How to add customers email adress in order info mail

Post by MAXambient »

Hi Jan! Found the way to handle it in the right way. Thanks again for helping Bw Markus
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to add customers email adress in order info mail

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply