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

#   Email Customisation

##

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

Less More

- Posts: 62
- Thank you received: 0
-
-

15 years 4 months ago [\#20592](#20592) by [Devine](/forum/user/2915-devine "View Devine's Profile")  *[Email Customisation](/forum/4-how-to/20592-email-customisation#20592 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")* was created by *[Devine](/forum/user/2915-devine "View Devine's Profile")*

I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator notification to include allot more detail, essentially to eliminate the need for my accounts team to access the backend of our website.

So with this in mind I have a couple of questions.
1. When are the following emails sent and to whom are they sent?
Order administrator notification
Order creation notification
Order status notification
Order notification
User account

2. Within these templates I see that the variable $data is used to obtain order_number, order_payment_method, order_full_price ect. Can you please point me in the direction of where this is all declared so I can get a comprehensive list of what data is available to call upon when customising the emails? For example I would like to include the coupon code, customer email and tax codes used.

Thank You

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwNTkyLWVtYWlsLWN1c3RvbWlzYXRpb24/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) 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: 86363
- Thank you received: 14296
-
-

15 years 4 months ago [\#20611](#20611) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#20611 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

1.
Order administrator notification -&gt; to the admin when the order is created
Order creation notification -&gt; to the user when the order is created
Order status notification -&gt; to the user when the order is confirmed
Order notification -&gt; to the user when the admin send an email for an order from the back end
User account -&gt; to the user when he creates a new account on HikaShop registration page/checkout page

2.
The $data comes from different places. One example is in the after_confirm function of the file components/com_hikashop/controller/checkout.php
The coupon code is in: $data-&gt;order_discount_code
The email is in: $data-&gt;customer-&gt;user_email
What do you mean by tax code ?

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

15 years 4 months ago [\#20777](#20777) by [Devine](/forum/user/2915-devine "View Devine's Profile")  Replied by *[Devine](/forum/user/2915-devine "View Devine's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#20777 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

Thankyou ![:)](/media/kunena/emoticons/3.png ":)") ,

By Tax codes I just meant which Tax rate was applied.
This should be ok though as I only have one and therefore if there is a Tax value then I know the tax rate.

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

15 years 4 months ago [\#20786](#20786) by [Devine](/forum/user/2915-devine "View Devine's Profile")  Replied by *[Devine](/forum/user/2915-devine "View Devine's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#20786 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

I have mostly got the Order administrator notification customised now however:

echo 'Email: '.$data-&gt;customer-&gt;user_email.' returns Email: Array

What code is required to return the email string?

I would also like the same for the customer phone number.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwNTkyLWVtYWlsLWN1c3RvbWlzYXRpb24/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) 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: 86363
- Thank you received: 14296
-
-

15 years 4 months ago [\#20795](#20795) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#20795 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

For the email you need to do like that:
echo 'Email: '.$data-&gt;customer-&gt;user_email[0];

For the phone number you can do like that:
$address = $data-&gt;order_addresses[$data-&gt;cart-&gt;billing_address-&gt;address_id];
echo 'Phone: '.$address-&gt;address_phone;

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

15 years 4 months ago [\#20840](#20840) by [Devine](/forum/user/2915-devine "View Devine's Profile")  Replied by *[Devine](/forum/user/2915-devine "View Devine's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#20840 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

echo 'Email: '.$data-&gt;customer-&gt;user_email[0];

This does not return the customers email it returns the administrator email. In other words the email to which the notification is being sent.
I would like to display the email address of the customer who bought the products.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwNTkyLWVtYWlsLWN1c3RvbWlzYXRpb24/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) 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: 86363
- Thank you received: 14296
-
-

15 years 4 months ago [\#20846](#20846) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#20846 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

Ah indeed, for the order admin notification the address receiving the email is the admin email. I thought you were editing the user emails...
For the admin email, you need to use the code:
$user = hikashop::loadUser(true);
echo $user-&gt;user_email;

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

15 years 4 months ago [\#20848](#20848) by [Devine](/forum/user/2915-devine "View Devine's Profile")  Replied by *[Devine](/forum/user/2915-devine "View Devine's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#20848 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

$user = hikashop::loadUser(true);
echo 'Email: '.$user-&gt;user_email[0];

This has returned the same result. Admin email address.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwNTkyLWVtYWlsLWN1c3RvbWlzYXRpb24/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) 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: 86363
- Thank you received: 14296
-
-

15 years 4 months ago [\#20862](#20862) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#20862 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

Mmm that's strange. The loadUser function can only return the current user information...
You could try like that:
$userCMS =&amp; JFactory::getUser();
echo $userCMS-&gt;get('email');

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

15 years 4 months ago [\#21000](#21000) by [Devine](/forum/user/2915-devine "View Devine's Profile")  Replied by *[Devine](/forum/user/2915-devine "View Devine's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#21000 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

Thank you that worked.

All my email customisations are now complete.

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

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

Less More

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

15 years 2 months ago [\#23670](#23670) by [MarcusATWS](/forum/user/3693-marcusatws "View MarcusATWS's Profile")  Replied by *[MarcusATWS](/forum/user/3693-marcusatws "View MarcusATWS's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#23670 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

What file does one need to modify to add customizations to the admin order notification?'
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwNTkyLWVtYWlsLWN1c3RvbWlzYXRpb24/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) 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: 86363
- Thank you received: 14296
-
-

15 years 2 months ago [\#23671](#23671) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#23671 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

You can go in the menu System-&gt;Emails to edit your HikaShop emails (Business edition only).

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

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

Less More

- Posts: 102
- Thank you received: 0
-
-

15 years 2 months ago [\#25219](#25219) by [MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")  Replied by *[MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#25219 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

Nicolas, i followed this thread to add the customer's email to the admin email template. i got the same results as divine. BUT i couldnt get the last piece of code to work either.
$userCMS =&amp; JFactory::getUser();
echo $userCMS-&gt;get('email');

returns null.

the others returned exactly what divine said. an array and then the admin email.

i am using the business edition (latest). joomla 1.5.23

can you help?

thanks liz

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwNTkyLWVtYWlsLWN1c3RvbWlzYXRpb24/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) 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: 86363
- Thank you received: 14296
-
-

15 years 2 months ago [\#25236](#25236) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#25236 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

The code
$userCMS =&amp; JFactory::getUser();
echo $userCMS-&gt;get('email');
will only return null if the user is not logged in. So I presume that it's the case ?

alternatively, you can try that:
$userClass = hiakshop_get('class.user');
$user = $userClass-&gt;get($data-&gt;order_user_id);
echo $user-&gt;user_email;

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

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

Less More

- Posts: 102
- Thank you received: 0
-
-

15 years 2 months ago [\#25239](#25239) by [MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")  Replied by *[MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#25239 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

hi there, thanks, this returns the following error:
Call to undefined function hiakshop_get() in /..mypathhere../media/com_hikashop/mail/order_admin_notification.html.modified.php on line 10

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwNTkyLWVtYWlsLWN1c3RvbWlzYXRpb24/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) 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: 86363
- Thank you received: 14296
-
-

15 years 2 months ago [\#25243](#25243) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#25243 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

I made a typo, it's of course hikashop_get and not hiakshop_get.

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

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

Less More

- Posts: 102
- Thank you received: 0
-
-

15 years 1 month ago [\#25354](#25354) by [MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")  Replied by *[MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#25354 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

nicolas, with the typo fixed (i should have seen that)... it returns array.
when i dump the array it returns only one item. our email address not the customers email address.
help!
we really need this.
thanks, Liz

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwNTkyLWVtYWlsLWN1c3RvbWlzYXRpb24/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) 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: 86363
- Thank you received: 14296
-
-

15 years 1 month ago [\#25363](#25363) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#25363 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

Then it must be a problem of cache. Try like that :
$userClass = hiakshop_get('class.user');
$userClass-&gt;get(false);
$user = $userClass-&gt;get($data-&gt;order_user_id);
echo $user-&gt;user_email;

That will reset the cache before loading the user information from the database.

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

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

Less More

- Posts: 13
- Thank you received: 1
-
-

15 years 1 month ago -  14 years 11 months ago [\#25386](#25386) by [Spacehangout](/forum/user/3875-spacehangout "View Spacehangout's Profile")  Replied by *[Spacehangout](/forum/user/3875-spacehangout "View Spacehangout's Profile")* on topic *[Re: Email Customisation](/forum/4-how-to/20592-email-customisation#25386 "I would like to customise the order notification emails. I have customised the front end invoice and I would like the customer email to be of a very similar format. I would also like the administrator...")*

I just used this code lately..
$userClass = hikashop_get('class.user');
$userClass-&gt;get(false);
$user = $userClass-&gt;get($data-&gt;order_user_id);
echo $user-&gt;user_email;
This gotta work for u.. ![:)](/media/kunena/emoticons/3.png ":)")

Last edit: 14 years 11 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

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