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

#   \[SOLVED\] Custom email notification of orders

##

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

Less More

- Posts: 26
- Thank you received: 0
-
-

13 years 2 weeks ago -  13 years 1 week ago [\#130331](#130331) by [jdoe](/forum/user/29057-jdoe "View jdoe's Profile")  *[\[SOLVED\] Custom email notification of orders](/forum/35-orders-management/863259-solved-custom-email-notification-of-orders#130331 "-HikaShop version: HikaShop Business 2.2.2 -Joomla version: Joomla! 3.1.5  I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.  1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?  2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?  3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?  I would be grateful if someone could help me with these problems. Thank you very much in advance!")* was created by *[jdoe](/forum/user/29057-jdoe "View jdoe's Profile")*

-HikaShop version: HikaShop Business 2.2.2
-Joomla version: Joomla! 3.1.5

I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.

1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?

2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?

3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?

I would be grateful if someone could help me with these problems. Thank you very much in advance!

Last edit: 13 years 1 week ago by [jdoe](/forum/user/29057-jdoe "View jdoe's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2MzI1OS1zb2x2ZWQtY3VzdG9tLWVtYWlsLW5vdGlmaWNhdGlvbi1vZi1vcmRlcnM/dG1wbD1tYXJrZG93bg==) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 1 week ago [\#130442](#130442) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom email notification of orders](/forum/35-orders-management/863259-solved-custom-email-notification-of-orders#130442 "-HikaShop version: HikaShop Business 2.2.2 -Joomla version: Joomla! 3.1.5  I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.  1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?  2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?  3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?  I would be grateful if someone could help me with these problems. Thank you very much in advance!")*

Hi,

Are you using the new template system ?
If so, you would have to do your customization in the "preload" files. Some variables that you want to change (format for the date) are processing in this file.
For the custom field, you can display it and, be default, they are displayed in the email (order custom fields).

For the order number, it is the order id but with a different format. In the preload, you can use "order_id" instead of "order_number" if you want to id instead of the number.

Regards,

---

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

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

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

13 years 1 week ago -  13 years 1 week ago [\#130584](#130584) by [jdoe](/forum/user/29057-jdoe "View jdoe's Profile")  Replied by *[jdoe](/forum/user/29057-jdoe "View jdoe's Profile")* on topic *[Custom email notification of orders](/forum/35-orders-management/863259-solved-custom-email-notification-of-orders#130584 "-HikaShop version: HikaShop Business 2.2.2 -Joomla version: Joomla! 3.1.5  I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.  1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?  2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?  3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?  I would be grateful if someone could help me with these problems. Thank you very much in advance!")*

Thank you for your reply! Could you tell me where can I find the preload files?

I have edited these emails in the System &gt; Emails menu. Here I have edited **"Order administrator notification"** and **"Order creation notification"**. The second one contains the date I would like to edit. There's an h2 element which only contains the following: **"{TXT:ORDER\_CREATED}"**. The date is inside this variable. The language file contains the following for this variable: Code:

ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE="We are pleased to confirm the creation of your order No. %s at %s on the %s at %s"

So I still can't edit the date here. Could you tell me where can I edit it?

The **"Order administrator notification"** contains the order number without the letters. The variable for it is "{VAR:ORDER_NUMBER}". I have tried changing it to order_id, but the email then displayed "{VAR:ORDER_ID}".

Well, unfortunately my custom field is not displayed in the email by default. I have created it in Display &gt; Custom fields, published it, but it only shows up on the site, when making an order, but not in the email. How can I make it appear in the email?

Last edit: 13 years 1 week ago by [jdoe](/forum/user/29057-jdoe "View jdoe's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2MzI1OS1zb2x2ZWQtY3VzdG9tLWVtYWlsLW5vdGlmaWNhdGlvbi1vZi1vcmRlcnM/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: 86541
- Thank you received: 14304
-
-

13 years 1 week ago [\#130702](#130702) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom email notification of orders](/forum/35-orders-management/863259-solved-custom-email-notification-of-orders#130702 "-HikaShop version: HikaShop Business 2.2.2 -Joomla version: Joomla! 3.1.5  I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.  1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?  2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?  3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?  I would be grateful if someone could help me with these problems. Thank you very much in advance!")*

Hi,

The date format can only be edited in the preload file of the email, not via the interface (yet).
You will find it in the folder media/com_hikashop/mail
Simply edit the preload file for your email there and change that line for the date format:
'ORDER_CREATED' =&gt; JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE', $url, HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M')),

Also, the order_id is not added to the $vars array of variables in that file so it's normal that you can't use it.
You would need to add such line:
$vars = $data-&gt;order_id;

Regarding the custom fields you're talking about, could you do screnshots of the options of your custom fields ?

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

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

13 years 1 week ago [\#130780](#130780) by [jdoe](/forum/user/29057-jdoe "View jdoe's Profile")  Replied by *[jdoe](/forum/user/29057-jdoe "View jdoe's Profile")* on topic *[Custom email notification of orders](/forum/35-orders-management/863259-solved-custom-email-notification-of-orders#130780 "-HikaShop version: HikaShop Business 2.2.2 -Joomla version: Joomla! 3.1.5  I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.  1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?  2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?  3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?  I would be grateful if someone could help me with these problems. Thank you very much in advance!")*

Thank you, I was able to easily modify the date, and to display the full order number, I only had to edit "order_admin_notification.preload.php" on line 70 and change this: Code:

'ORDER_NUMBER' =&gt; $data-&gt;order_id,

to this: Code:

'ORDER_NUMBER' =&gt; $data-&gt;order_number,

So I didn't have to add a new line. Isn't it a little bug that we have came across? I think for the var 'ORDER_NUMBER', $data-&gt;order_number should be displayed by default as there is no previos reference to $data-&gt;order_id in the file.

I am attaching a picture of the options for my custom fields.

- [ ![h3278dc5.jpg](/forum/attachment/13428) ](/forum/attachment/13428 "h3278dc5.jpg") [ ](/forum/attachment/13428?download=1 "h3278dc5.jpg")

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 1 week ago -  13 years 1 week ago [\#131079](#131079) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Custom email notification of orders](/forum/35-orders-management/863259-solved-custom-email-notification-of-orders#131079 "-HikaShop version: HikaShop Business 2.2.2 -Joomla version: Joomla! 3.1.5  I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.  1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?  2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?  3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?  I would be grateful if someone could help me with these problems. Thank you very much in advance!")*

Hi,
If you want to add your address custom field through your email, the solution will probably be to edit the "**address\_template**" file of the "**order**" view of your **\[strike\]back-end\[/strike\] front-end template** through "*Hikashop-&gt;Display-&gt;Views*" and add this line : Code:

{megjegyzes}

Last edit: 13 years 1 week ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

13 years 1 week ago [\#131101](#131101) by [jdoe](/forum/user/29057-jdoe "View jdoe's Profile")  Replied by *[jdoe](/forum/user/29057-jdoe "View jdoe's Profile")* on topic *[Custom email notification of orders](/forum/35-orders-management/863259-solved-custom-email-notification-of-orders#131101 "-HikaShop version: HikaShop Business 2.2.2 -Joomla version: Joomla! 3.1.5  I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.  1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?  2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?  3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?  I would be grateful if someone could help me with these problems. Thank you very much in advance!")*

I have added the line to "administrator/components/com_hikashop/views/order/tmpl/address_template.php", however unfortunately it still doesn't display nor in the admin notification, neither in the order creation notification email.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2MzI1OS1zb2x2ZWQtY3VzdG9tLWVtYWlsLW5vdGlmaWNhdGlvbi1vZi1vcmRlcnM/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 1 week ago [\#131145](#131145) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Custom email notification of orders](/forum/35-orders-management/863259-solved-custom-email-notification-of-orders#131145 "-HikaShop version: HikaShop Business 2.2.2 -Joomla version: Joomla! 3.1.5  I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.  1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?  2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?  3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?  I would be grateful if someone could help me with these problems. Thank you very much in advance!")*

Hi,

You have to add it in the view "address / address_template" of your **frontend** template.

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

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

13 years 1 week ago [\#131181](#131181) by [jdoe](/forum/user/29057-jdoe "View jdoe's Profile")  Replied by *[jdoe](/forum/user/29057-jdoe "View jdoe's Profile")* on topic *[Custom email notification of orders](/forum/35-orders-management/863259-solved-custom-email-notification-of-orders#131181 "-HikaShop version: HikaShop Business 2.2.2 -Joomla version: Joomla! 3.1.5  I have modified the admin, and order creation email notifications a little bit to better suit my needs. However there are some things I can't seem to be able to do myself.  1. The email the users get contains the date of the order, however in Hungary, we display dates differenty. How can I modify the date format in the emails?  2. I have created a custom textarea field on the order page, under the user details. The user can add a little message to the order with it. Is it possible to include the content of this custom field in the emails?  3. For the admin orders, I would like to include the unique order ids, like in the user email notification. When the user creates an order, they get the email with the subject: Your order with the id X19 has been created... but the email I get only contains the order number (19 in this case). Is it possible to show the full order ID in the admin emails?  I would be grateful if someone could help me with these problems. Thank you very much in advance!")*

Thank you very much, it is working now!

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

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