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

#   Inserting customer email address in Admin Email

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 months ago [\#117662](#117662) by [simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")  *[Inserting customer email address in Admin Email](/forum/4-how-to/860778-inserting-customer-email-address-in-admin-email#117662 "I found this code in a previous post on the subject:-  get($data-&gt;cart-&gt;order&#95;user&#95;id); echo $user-&gt;user&#95;mail; ?&gt;  and inserted it into the Order Administration Notification email, but it returns nothing. Anything else I need to add to make this work?  I am running Hikashop Business 2.1.3 with 'No Registration' configured. All I need to do is echo the customer's email address along with their billing address. If I do a Reply to the email, it addresses it to the customer so has it stored somewhere, but if I add  (found in another post) it lists everything except the customer's email.")* was created by *[simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")*

I found this code in a previous post on the subject:-

&lt;?php
$class = hikashop_get('class.user');
$user = $class-&gt;get($data-&gt;cart-&gt;order_user_id);
echo $user-&gt;user_mail;
?&gt;

and inserted it into the Order Administration Notification email, but it returns nothing. Anything else I need to add to make this work?

I am running Hikashop Business 2.1.3 with 'No Registration' configured. All I need to do is echo the customer's email address along with their billing address. If I do a Reply to the email, it addresses it to the customer so has it stored somewhere, but if I add &lt;?php echo nl2br(print_r($data,true)); ?&gt; (found in another post) it lists everything except the customer's email.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 months ago [\#117680](#117680) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Inserting customer email address in Admin Email](/forum/4-how-to/860778-inserting-customer-email-address-in-admin-email#117680 "I found this code in a previous post on the subject:-  get($data-&gt;cart-&gt;order&#95;user&#95;id); echo $user-&gt;user&#95;mail; ?&gt;  and inserted it into the Order Administration Notification email, but it returns nothing. Anything else I need to add to make this work?  I am running Hikashop Business 2.1.3 with 'No Registration' configured. All I need to do is echo the customer's email address along with their billing address. If I do a Reply to the email, it addresses it to the customer so has it stored somewhere, but if I add  (found in another post) it lists everything except the customer's email.")*

Hi,

Thanks to update your HikaShop version, that should correct that bug.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 months ago [\#117688](#117688) by [simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")  Replied by *[simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")* on topic *[Inserting customer email address in Admin Email](/forum/4-how-to/860778-inserting-customer-email-address-in-admin-email#117688 "I found this code in a previous post on the subject:-  get($data-&gt;cart-&gt;order&#95;user&#95;id); echo $user-&gt;user&#95;mail; ?&gt;  and inserted it into the Order Administration Notification email, but it returns nothing. Anything else I need to add to make this work?  I am running Hikashop Business 2.1.3 with 'No Registration' configured. All I need to do is echo the customer's email address along with their billing address. If I do a Reply to the email, it addresses it to the customer so has it stored somewhere, but if I add  (found in another post) it lists everything except the customer's email.")*

Thanks, I have now updated to HikaShop Business 2.2.0, but the email address is still not displaying using the code cut/paste from above. Any ideas?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 months ago [\#117713](#117713) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Inserting customer email address in Admin Email](/forum/4-how-to/860778-inserting-customer-email-address-in-admin-email#117713 "I found this code in a previous post on the subject:-  get($data-&gt;cart-&gt;order&#95;user&#95;id); echo $user-&gt;user&#95;mail; ?&gt;  and inserted it into the Order Administration Notification email, but it returns nothing. Anything else I need to add to make this work?  I am running Hikashop Business 2.1.3 with 'No Registration' configured. All I need to do is echo the customer's email address along with their billing address. If I do a Reply to the email, it addresses it to the customer so has it stored somewhere, but if I add  (found in another post) it lists everything except the customer's email.")*

I think that you had updated the email before the update, so the changes have not been applied (to not loose your modifications).

You just have to remove the customization by clicking on the dustbin in the email listing, and it will work fine.
Then you can put back your modifications.

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

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 months ago [\#117728](#117728) by [simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")  Replied by *[simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")* on topic *[Inserting customer email address in Admin Email](/forum/4-how-to/860778-inserting-customer-email-address-in-admin-email#117728 "I found this code in a previous post on the subject:-  get($data-&gt;cart-&gt;order&#95;user&#95;id); echo $user-&gt;user&#95;mail; ?&gt;  and inserted it into the Order Administration Notification email, but it returns nothing. Anything else I need to add to make this work?  I am running Hikashop Business 2.1.3 with 'No Registration' configured. All I need to do is echo the customer's email address along with their billing address. If I do a Reply to the email, it addresses it to the customer so has it stored somewhere, but if I add  (found in another post) it lists everything except the customer's email.")*

Thanks, that has worked a treat.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2MDc3OC1pbnNlcnRpbmctY3VzdG9tZXItZW1haWwtYWRkcmVzcy1pbi1hZG1pbi1lbWFpbD90bXBsPW1hcmtkb3du) 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.146 seconds

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

[](#top)
