[Skip to main content](#vessel-content)

#   How do we get user emails copied to admin?

##

- **[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")**
- [![nikmackey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7626-nikmackey "View nikmackey's Profile") Topic Author
- [ Offline](/forum/user/7626-nikmackey)

Less More

- Posts: 60
- Thank you received: 1
-
-

13 years 10 months ago [\#81459](#81459) by [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")  *[How do we get user emails copied to admin?](/forum/2-general-talk-about-hikashop/76645-how-do-we-get-user-emails-copied-to-admin#81459 "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")* was created by *[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjQ1LWhvdy1kby13ZS1nZXQtdXNlci1lbWFpbHMtY29waWVkLXRvLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#81465](#81465) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How do we get user emails copied to admin?](/forum/2-general-talk-about-hikashop/76645-how-do-we-get-user-emails-copied-to-admin#81465 "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")*

Hi,

You can edit the email with HikaShop and place this code at the end of the email.
So just after this Code:

&lt;?php $data-&gt;customer = $customer;

Add this: Code:

$config =&amp; hikashop_config(); $data-&gt;customer-&gt;user_email .= ',' . $config-&gt;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 &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjQ1LWhvdy1kby13ZS1nZXQtdXNlci1lbWFpbHMtY29waWVkLXRvLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")**
- [![nikmackey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7626-nikmackey "View nikmackey's Profile") Topic Author
- [ Offline](/forum/user/7626-nikmackey)

Less More

- Posts: 60
- Thank you received: 1
-
-

13 years 10 months ago [\#81618](#81618) by [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")  Replied by *[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")* on topic *[How do we get user emails copied to admin?](/forum/2-general-talk-about-hikashop/76645-how-do-we-get-user-emails-copied-to-admin#81618 "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")*

Thanks. I'll give this a go and let you know how we get on.

Cheers

Crispin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjQ1LWhvdy1kby13ZS1nZXQtdXNlci1lbWFpbHMtY29waWVkLXRvLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")**
- [![nikmackey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7626-nikmackey "View nikmackey's Profile") Topic Author
- [ Offline](/forum/user/7626-nikmackey)

Less More

- Posts: 60
- Thank you received: 1
-
-

13 years 10 months ago [\#81931](#81931) by [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")  Replied by *[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")* on topic *[How do we get user emails copied to admin?](/forum/2-general-talk-about-hikashop/76645-how-do-we-get-user-emails-copied-to-admin#81931 "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")*

This is the resulting code in Order status notification
Code:

&lt;?php $data-&gt;customer = $customer; $config =&amp; hikashop_config(); $data-&gt;customer-&gt;user_email .= 'orders@blakeworth.com,'. $config-&gt;get('payment_notification_email');?&gt;

Unfortunately now no order notification emails go out.

What did we do wrong?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjQ1LWhvdy1kby13ZS1nZXQtdXNlci1lbWFpbHMtY29waWVkLXRvLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#81933](#81933) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How do we get user emails copied to admin?](/forum/2-general-talk-about-hikashop/76645-how-do-we-get-user-emails-copied-to-admin#81933 "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")*

Hi,

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

Use instead: Code:

$data-&gt;customer-&gt;user_email .= ',orders@blakeworth.com';

Regards

---

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

The following user(s) said Thank You: [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjQ1LWhvdy1kby13ZS1nZXQtdXNlci1lbWFpbHMtY29waWVkLXRvLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")**
- [![nikmackey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7626-nikmackey "View nikmackey's Profile") Topic Author
- [ Offline](/forum/user/7626-nikmackey)

Less More

- Posts: 60
- Thank you received: 1
-
-

13 years 10 months ago [\#82101](#82101) by [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")  Replied by *[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")* on topic *[How do we get user emails copied to admin?](/forum/2-general-talk-about-hikashop/76645-how-do-we-get-user-emails-copied-to-admin#82101 "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")*

Got it.

Thanks

Crispin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjQ1LWhvdy1kby13ZS1nZXQtdXNlci1lbWFpbHMtY29waWVkLXRvLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")**
- [![nikmackey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7626-nikmackey "View nikmackey's Profile") Topic Author
- [ Offline](/forum/user/7626-nikmackey)

Less More

- Posts: 60
- Thank you received: 1
-
-

13 years 10 months ago -  13 years 10 months ago [\#82124](#82124) by [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")  Replied by *[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")* on topic *[How do we get user emails copied to admin?](/forum/2-general-talk-about-hikashop/76645-how-do-we-get-user-emails-copied-to-admin#82124 "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")*

Am I being really stupid here?

This is the code we now have Code:

&lt;?php $data-&gt;customer = $customer; $config =&amp; hikashop_config(); $data-&gt;customer-&gt;user_email .= ',orders@blakeworth.com' . $config-&gt;get('payment_notification_email');?&gt;

I note that in your version you now have a semi colon after Code:

$data-&gt;customer-&gt;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 10 months ago by [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjQ1LWhvdy1kby13ZS1nZXQtdXNlci1lbWFpbHMtY29waWVkLXRvLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#82127](#82127) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How do we get user emails copied to admin?](/forum/2-general-talk-about-hikashop/76645-how-do-we-get-user-emails-copied-to-admin#82127 "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")*

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-&gt;customer-&gt;user_email .= ',' . $config-&gt;get('payment_notification_email');

Solution two: Code:

$data-&gt;customer-&gt;user_email .= ',orders@blakeworth.com';

And if you really want to add TWO MORE emails. Code:

$data-&gt;customer-&gt;user_email .= ',orders@blakeworth.com' . ',' . $config-&gt;get('payment_notification_email');?&gt;

Please, do not improvise.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjQ1LWhvdy1kby13ZS1nZXQtdXNlci1lbWFpbHMtY29waWVkLXRvLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.084 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
