Include Buyer E-Address in Order confirmation Emai

  • Posts: 15
  • Thank you received: 0
11 years 1 month ago #128043

How do I add the buyer's email address to the order created and/or payment complete emails sent by HikaShop?

Last edit: 11 years 1 month ago by Jerome.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #128109

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.

  • Posts: 15
  • Thank you received: 0
11 years 1 month ago #128275

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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 1 month ago #128281

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 15
  • Thank you received: 0
11 years 1 month ago #128411

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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 1 month ago #128456

Hi,

So, in HikaShop 2.1.3, you can put this code in your mail content

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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum