- Posts: 60
- Thank you received: 1
How do we get user emails copied to admin?
13 years 9 months ago #81459
by nikmackey
How do we get user emails copied to admin? was created 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
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.
13 years 9 months ago #81465
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic How do we get user emails copied to admin?
Hi,
You can edit the email with HikaShop and place this code at the end of the email.
So just after this
Add this:
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,
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;
Code:
$config =& hikashop_config();
$data->customer->user_email .= ',' . $config->get('payment_notification_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.
13 years 9 months ago #81618
by nikmackey
Replied by nikmackey on topic How do we get user emails copied to admin?
Thanks. I'll give this a go and let you know how we get on.
Cheers
Crispin
Cheers
Crispin
Please Log in or Create an account to join the conversation.
13 years 9 months ago #81931
by nikmackey
Replied by nikmackey on topic How do we get user emails copied to admin?
This is the resulting code in Order status notification
Unfortunately now no order notification emails go out.
What did we do wrong?
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.
13 years 9 months ago #81933
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic How do we get user emails copied to admin?
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:
Regards
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.
13 years 9 months ago #82101
by nikmackey
Replied by nikmackey on topic How do we get user emails copied to admin?
Got it.
Thanks
Crispin
Thanks
Crispin
Please Log in or Create an account to join the conversation.
13 years 9 months ago - 13 years 9 months ago #82124
by nikmackey
Replied by nikmackey on topic How do we get user emails copied to admin?
Am I being really stupid here?
This is the code we now have
I note that in your version you now have a semi colon after
where it wasn't in your original version
The customer is now receiving the confirmation but the copy isn't being received.
Crispin
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';
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.
13 years 9 months ago #82127
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic How do we get user emails copied to admin?
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:
Solution two:
And if you really want to add TWO MORE emails.
Please, do not improvise.
Regards,
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');
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.201 seconds