Skip to main content

How do we get user emails copied to admin?

More
13 years 9 months ago #81459 by nikmackey
More specifically how do we get the order confirmation email the customer gets copied to Admin.

Hikashop sends the customer this email which contains all the information required to fulfil orders so it would be very useful to have a copy of it.

Cheers

Crispin

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

More
13 years 9 months ago #81465 by Jerome
Hi,

You can edit the email with HikaShop and place this code at the end of the email.
So just after this
Code:
<?php $data->customer = $customer;
Add this:
Code:
$config =& hikashop_config(); $data->customer->user_email .= ',' . $config->get('payment_notification_email');
It would add the payment notification email in copy of the email.
Be careful, the email would be send to two address in the same email, so the customer would see that the email as been send to your "payment notification email" too.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: nikmackey

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

More
13 years 9 months ago #81618 by nikmackey
Thanks. I'll give this a go and let you know how we get on.

Cheers

Crispin

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

More
13 years 9 months ago #81931 by nikmackey
This is the resulting code in Order status notification
Code:
<?php $data->customer = $customer; $config =& hikashop_config(); $data->customer->user_email .= 'orders@blakeworth.com,'. $config->get('payment_notification_email');?>

Unfortunately now no order notification emails go out.

What did we do wrong?

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

More
13 years 9 months ago #81933 by Jerome
Hi,

There is already a email in the $data->customer->user_email.
So by adding your email "orders@blakeworth.com" without comma, it would break the previous email.

Use instead:
Code:
$data->customer->user_email .= ',orders@blakeworth.com';

Regards

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: nikmackey

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

More
13 years 9 months ago #82101 by nikmackey
Got it.

Thanks

Crispin

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

More
13 years 9 months ago - 13 years 9 months ago #82124 by nikmackey
Am I being really stupid here?

This is the code we now have
Code:
<?php $data->customer = $customer; $config =& hikashop_config(); $data->customer->user_email .= ',orders@blakeworth.com' . $config->get('payment_notification_email');?>

I note that in your version you now have a semi colon after
Code:
$data->customer->user_email .= ',orders@blakeworth.com';
where it wasn't in your original version

The customer is now receiving the confirmation but the copy isn't being received.

Crispin
Last edit: 13 years 9 months ago by nikmackey.

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

More
13 years 9 months ago #82127 by Jerome
Hi,

I gave you several solutions but you didn't use any of ones that I gave you.
You just have to copy past the entire line.

Solution one:
Code:
$data->customer->user_email .= ',' . $config->get('payment_notification_email');
Solution two:
Code:
$data->customer->user_email .= ',orders@blakeworth.com';

And if you really want to add TWO MORE emails.
Code:
$data->customer->user_email .= ',orders@blakeworth.com' . ',' . $config->get('payment_notification_email');?>

Please, do not improvise.

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