How to add address to order confirmation mail

  • Posts: 137
  • Thank you received: 2
11 years 10 months ago #82541

Hi, have the business version. I would like to receive a copy of the original order confirmation mail that goes to the customer instead the mail that goes to the admin. I do not find where I could my admin address as a cc to the order confirmation mail.

Can you please point me to the right panel or explain how to do in case it is not that trivial?

Thanks in advance!

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #82595

Hi,

To do that, you can edit the class order "administrator/components/com_hikashop/classes/order.php" and in the function save(), add the administrator email address in the variable "$order->mail->dst_email".

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

  • Posts: 137
  • Thank you received: 2
11 years 10 months ago #82852

would I do that in the backend or do I need to edit a file on the server directly?

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #82853

Hi,

Please edit the email in the HikaShop backend.
At the end of the email, you would find:

<?php
$data->customer = $customer;
Just add after:
$config =& hikashop_config();
$data->customer->user_email .= ',' . $config->get('payment_notification_email');
So, the email that you have in your configuration (as "payment notification email") would be added in the destinations of the email.

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: 137
  • Thank you received: 2
11 years 10 months ago #82854

I am hesitant to ask... but actually I do not find this expression in any of the e-mails, when going into the backend -> system -> e-mails ?

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 10 months ago #82858

The edition of emails is only available via that menu in the Business edition of HikaShop.

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

  • Posts: 137
  • Thank you received: 2
11 years 10 months ago #82907

I have the business edition and there are several e-mails that I can edit. I am not sure which one to edit:
ORDER_NOTIFICATION or ORDER_CREATION_NOTIFICATION ? In none of both I find near the end
<?php
$data->customer = $customer;

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #82989

Hi,

I was talking about the "order status notification" email.
Order creation notification use the parameter.

For the "order creation notification" email, you have to add in the end of the email this:

<?php
$config =& hikashop_config();
$data->customer->user_email .= ',' . $config->get('payment_notification_email');

The "order notification" email is blank by default but you can add this same php code.

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.079 seconds
Powered by Kunena Forum