Skip to main content

Include Buyer E-Address in Order confirmation Emai

More
12 years 11 months ago - 12 years 11 months ago #128043 by BWhikashop
How do I add the buyer's email address to the order created and/or payment complete emails sent by HikaShop?
Last edit: 12 years 11 months ago by Jerome.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #128109 by Xavier
Hi,

You can edit the emails via the menu System > Emails, and then the email address should be stored in the object "$customer", it require some php knowledges.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #128275 by BWhikashop
Two questions: When you say it requires a little php knowledge, what do you mean...as in "how little"? Second question: Is this something that once done will need to be repeated with each update?

Last question: Is there a reason that I wouldn't want to do this? Something, logical, like it's a weakness because...

If you could, would you give me an example of what code I need to use.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #128281 by Jerome
Hi,

Depending to your HikaShop version, the email system is different (we improved it in HikaShop 2.2.2).
Which HikaShop version do you have ?

When you override an email, the override is kept during updates, like for every "overrides" in HikaShop (for views, css, mail).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #128411 by BWhikashop
I'm running 2.1.3, but I'll update to 2.2.2 while waiting for your answer. I'm using Hikashop Business if that makes a difference. Thanks for your help.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #128456 by Jerome
Hi,

So, in HikaShop 2.1.3, you can put this code in your mail content
Code:
<?php echo $data->customer->user_email; ?>
And you can use the same code in HikaShop 2.2.2 (even if the templating system is different you still can put some PHP code in the mail content).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Time to create page: 0.182 seconds
Powered by Kunena Forum