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

#   Add Email and telephone to Admin email

##

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#20337](#20337) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  *[Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#20337 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")* was created by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")*

What do i need to change to get the email and telephone of the customer on the admin email.

I would like to have them separately under something like Contact information.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzM3LWFkZC1lbWFpbC1hbmQtdGVsZXBob25lLXRvLWFkbWluLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86284
- Thank you received: 14263
-
-

15 years 3 months ago [\#20348](#20348) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#20348 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

You need to edit the email "order admin notification" via the menu System-&gt;Emails (business edition only).

The telephone should already be in the address section.
You can display it like that:
echo $data-&gt;cart-&gt;billing_address-&gt;address_telephone;

for the email, it's:
echo $data-&gt;customer-&gt;user_email;

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#21126](#21126) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21126 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

i am getting the information from the custom Order Fields all slapped together in the admin email. i would like to display one by one so i can separate them. also any way of making it so that if no information is supplied that those empty fields don't show including the labels.

Thanks! ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzM3LWFkZC1lbWFpbC1hbmQtdGVsZXBob25lLXRvLWFkbWluLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86284
- Thank you received: 14263
-
-

15 years 3 months ago [\#21138](#21138) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21138 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

The fields data is displayed by the code:
foreach($fields as $fieldName =&gt; $oneExtraField) {
echo "&lt;br/&gt;".$fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField,$data-&gt;$fieldName);
}

So you could just change that code to what you want.

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#21195](#21195) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21195 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

i was looking for something like this for the order fields " echo $data-&gt;customer-&gt;user_email; " . would it be something like "echo $data-&gt;order-&gt;msl; " would this echo the label too?

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#21203](#21203) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21203 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

i also noticed with the code that was there the radio selection value is not being echoed out.it does the label but no value.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzM3LWFkZC1lbWFpbC1hbmQtdGVsZXBob25lLXRvLWFkbWluLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86284
- Thank you received: 14263
-
-

15 years 3 months ago [\#21214](#21214) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21214 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

echo $data-&gt;order-&gt;msl; would just display the value of the field, not the label. The label is in $oneExtraField-&gt;field_realname.

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#21272](#21272) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21272 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

so it would be echo $data-&gt;order-&gt;msl-&gt;field_realname ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzM3LWFkZC1lbWFpbC1hbmQtdGVsZXBob25lLXRvLWFkbWluLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86284
- Thank you received: 14263
-
-

15 years 3 months ago [\#21293](#21293) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21293 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

No.

In the email, you have the code below, right ?
foreach($fields as $fieldName =&gt; $oneExtraField) {
echo "&lt;br/&gt;".$fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField,$data-&gt;$fieldName);
}

In that foreach the variable $oneExtraField-&gt;field_realname contains the label of the field.
So:
echo $oneExtraField-&gt;field_realname;

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#21297](#21297) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21297 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

yeah i can see that but lets say i want to echo the label and the value of the field MSL. the value of it gets echoed like this echo $data-&gt;order-&gt;msl; but how would the label of it get echoed. i want to echo these out myself without the foreach. since i want to separate some fields from the others.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzM3LWFkZC1lbWFpbC1hbmQtdGVsZXBob25lLXRvLWFkbWluLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86284
- Thank you received: 14263
-
-

15 years 3 months ago [\#21303](#21303) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21303 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

If you want to do it outside the foreach, why not just echo the label directly: echo 'My name';
Otherwise, you could try like that:
echo $fields-&gt;field_realname;

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#21304](#21304) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Add Email and telephone to Admin email](/forum/4-how-to/20337-add-email-and-telephone-to-admin-email#21304 "What do i need to change to get the email and telephone of the customer on the admin email.  I would like to have them separately under something like Contact information.")*

lol.. didn't think of that.. always thinking of the harder way first.. but good to know.. i am trying to get to know how the code for hikashop was written so i can create some plug-ins.

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

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

[](#top)
