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

#   Customer mail in Order administrator notification

##

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

Less More

- Posts: 61
- Thank you received: 1
-
-

14 years 1 month ago [\#69766](#69766) by [Rolandus1](/forum/user/6166-rolandus1 "View Rolandus1's Profile")  *[Customer mail in Order administrator notification](/forum/4-how-to/69766-customer-mail-in-order-administrator-notification#69766 "Hi In the mail &quot;Order administrator notification&quot; send to admin, there is no e-mail adress of the client. We need that.  It could appear with the billing or the shipping adress below the price table. Or even better, if the e-mail adress could be the sender FROM adress of the mail.  Are both ways possible? If yes how to?")* was created by *[Rolandus1](/forum/user/6166-rolandus1 "View Rolandus1's Profile")*

Hi
In the mail "Order administrator notification" send to admin, there is no e-mail adress of the client.
We need that.

It could appear with the billing or the shipping adress below the price table.
Or even better, if the e-mail adress could be the sender FROM adress of the mail.

Are both ways possible?
If yes how to?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY5NzY2LWN1c3RvbWVyLW1haWwtaW4tb3JkZXItYWRtaW5pc3RyYXRvci1ub3RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) 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)
-

14 years 1 month ago [\#69797](#69797) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Customer mail in Order administrator notification](/forum/4-how-to/69766-customer-mail-in-order-administrator-notification#69797 "Hi In the mail &quot;Order administrator notification&quot; send to admin, there is no e-mail adress of the client. We need that.  It could appear with the billing or the shipping adress below the price table. Or even better, if the e-mail adress could be the sender FROM adress of the mail.  Are both ways possible? If yes how to?")*

Hi Rolandus1,

To have the customer email in the order administrator notification, you just have to edit the mail "Order administrator notification" in HikaShop &gt; System &gt; Emails, and add the code: Code:

echo $data-&gt;customer-&gt;email;

In this file, and the customer email will be displayed.

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

13 years 9 months ago -  13 years 9 months ago [\#90464](#90464) by [ybe](/forum/user/6351-ybe "View ybe's Profile")  Replied by *[ybe](/forum/user/6351-ybe "View ybe's Profile")* on topic *[Customer mail in Order administrator notification](/forum/4-how-to/69766-customer-mail-in-order-administrator-notification#90464 "Hi In the mail &quot;Order administrator notification&quot; send to admin, there is no e-mail adress of the client. We need that.  It could appear with the billing or the shipping adress below the price table. Or even better, if the e-mail adress could be the sender FROM adress of the mail.  Are both ways possible? If yes how to?")*

Hi:

I am not seeing this place to edit the email in HikaShop &gt; System &gt; Emails

System menu - yes
E-mails tab - yes; but only for high level address, embed information

Where do I add this 'customer email address' to the 'Order Administration Notification' email?

Please Note: I also saw this post [ ](http://www.hikashop.com/en/forum/3-bug-report/5325-administrator-order-creation-notification-email.html#5325)[ www.hikashop.com/en/forum/3-bug-report/5...tion-email.html#5325](http://www.hikashop.com/en/forum/3-bug-report/5325-administrator-order-creation-notification-email.html#5325) and looked at editing the file media/com_hikashop/mail/order_admin_notification.text.php but am not sure where to add it (PHP is not my skill set...).

Thanks for your help

Last edit: 13 years 9 months ago by [ybe](/forum/user/6351-ybe "View ybe's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY5NzY2LWN1c3RvbWVyLW1haWwtaW4tb3JkZXItYWRtaW5pc3RyYXRvci1ub3RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) 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 9 months ago [\#90630](#90630) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Customer mail in Order administrator notification](/forum/4-how-to/69766-customer-mail-in-order-administrator-notification#90630 "Hi In the mail &quot;Order administrator notification&quot; send to admin, there is no e-mail adress of the client. We need that.  It could appear with the billing or the shipping adress below the price table. Or even better, if the e-mail adress could be the sender FROM adress of the mail.  Are both ways possible? If yes how to?")*

Hi,

You can add it anywhere in the email, it must just be between &lt;?php .. ?&gt; tags.

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

13 years 9 months ago [\#91444](#91444) by [ybe](/forum/user/6351-ybe "View ybe's Profile")  Replied by *[ybe](/forum/user/6351-ybe "View ybe's Profile")* on topic *[Customer mail in Order administrator notification](/forum/4-how-to/69766-customer-mail-in-order-administrator-notification#91444 "Hi In the mail &quot;Order administrator notification&quot; send to admin, there is no e-mail adress of the client. We need that.  It could appear with the billing or the shipping adress below the price table. Or even better, if the e-mail adress could be the sender FROM adress of the mail.  Are both ways possible? If yes how to?")*

Hi Xavier

Thanks but that does not help me understand so some more questions.

1. I have to change

order_admin_notification.html.php
AND
order_admin_notification.text.php

Correct? And these are the generators for the HTML and Text emails respectively, correct?

2. If so, I see this section in the html.php file

---

&lt;tr&gt;
&lt;td&gt;
&lt;table width="100%" style="border: 1px solid #DDDDDD;font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;"&gt;
&lt;?php
$params = null;
$js = '';
$fieldsClass = hikashop_get('class.field');
$app=&amp;JFactory::getApplication();
$template = trim(hikashop_getLayout($app-&gt;isAdmin() ? 'order' : 'address','address_template',$params,$js));
if(!empty($data-&gt;cart-&gt;billing_address)){
$billing = $template;
foreach($data-&gt;cart-&gt;fields as $field){
$fieldname = $field-&gt;field_namekey;
$billing=str_replace('{'.$fieldname.'}',$fieldsClass-&gt;show($field,$data-&gt;cart-&gt;billing_address-&gt;$fieldname),$billing);
}
echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_BILLING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';
echo str_replace(array("\r\n","\r","\n"),'&lt;br/&gt;',preg_replace('#{(?![:(](/media/kunena/emoticons/22.png ":(")?!}).)*}#i','',$billing)).'&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;';
}
if(!empty($data-&gt;cart-&gt;order_shipping_id) &amp;&amp; !empty($data-&gt;cart-&gt;shipping_address)){
$shipping = $template;
foreach($data-&gt;cart-&gt;fields as $field){
$fieldname = $field-&gt;field_namekey;
$shipping=str_replace('{'.$fieldname.'}',$fieldsClass-&gt;show($field,$data-&gt;cart-&gt;shipping_address-&gt;$fieldname),$shipping);
}
echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_SHIPPING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';
echo str_replace(array("\r\n","\r","\n"),'&lt;br/&gt;',preg_replace('#{(?![:(](/media/kunena/emoticons/22.png ":(")?!}).)*}#i','',$shipping)).'&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;';
}?&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;

---

Presumably the line:

echo $data-&gt;customer-&gt;email;

Needs to go within the &lt;table&gt; and needs to be include a &lt;tr&gt;&lt;td&gt; like this:

echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;$data-&gt;customer-&gt;email&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';

Is that the correct syntax?

If it is the correct syntax do I just add it under the lines:

echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_BILLING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';
AND
echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_SHIPPING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';

To cover which address it puts in the email?

3. In the text.php file I absolutely cannot figure out where to put it (assuming it needs it...). There are only &lt;?php .. ?&gt; tags in the header; the second &lt;?php does not close.

Can you provide more direction?

Thanks for your help.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

13 years 9 months ago [\#91618](#91618) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customer mail in Order administrator notification](/forum/4-how-to/69766-customer-mail-in-order-administrator-notification#91618 "Hi In the mail &quot;Order administrator notification&quot; send to admin, there is no e-mail adress of the client. We need that.  It could appear with the billing or the shipping adress below the price table. Or even better, if the e-mail adress could be the sender FROM adress of the mail.  Are both ways possible? If yes how to?")*

Hi,

You mainly need to change the HTML version. Almost all the email clients use the HTML version and yours too. So you don't need to modify the text version.

It should be:
echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.$data-&gt;customer-&gt;email.'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';

and not:
echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;$data-&gt;customer-&gt;email&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';

And yes, you can add it after:
echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_BILLING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';

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

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