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

#   How to include a custom field in emails

##

- **[didero](/forum/user/1276-didero "View didero's Profile")**
- [![didero's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1276.jpg)](/forum/user/1276-didero "View didero's Profile") Topic Author
- [ Offline](/forum/user/1276-didero)

Less More

- Posts: 66
- Thank you received: 3
-
-
-
- [](http://www.1968dewinkel.nl)
-

15 years 6 months ago -  15 years 6 months ago [\#15738](#15738) by [didero](/forum/user/1276-didero "View didero's Profile")  *[How to include a custom field in emails](/forum/4-how-to/15738-how-to-include-a-custom-field-in-emails#15738 "For the shop I am still working on I have set up a custom date field to be filled in by the customer. Needed to have the food delivered in time.  How do I get that information in the emails send to customers?  Something like this in the Order creation notification (customer) and Order administrator notification?  ")* was created by *[didero](/forum/user/1276-didero "View didero's Profile")*

For the shop I am still working on I have set up a custom date field to be filled in by the customer. Needed to have the food delivered in time.

How do I get that information in the emails send to customers?

Something like this in the Order creation notification (customer) and Order administrator notification?

**Gewenste datum levering: &lt;?php echo JText::\_('whichlabelhere');?&gt;**

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/printscreen.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/printscreen.jpg "&#91;img")

---

[ ](http://www.didero.nl)[ www.didero.nl](http://www.didero.nl)

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

Last edit: 15 years 6 months ago by [didero](/forum/user/1276-didero "View didero's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE1NzM4LWhvdy10by1pbmNsdWRlLWEtY3VzdG9tLWZpZWxkLWluLWVtYWlscz90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

15 years 6 months ago [\#15755](#15755) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to include a custom field in emails](/forum/4-how-to/15738-how-to-include-a-custom-field-in-emails#15755 "For the shop I am still working on I have set up a custom date field to be filled in by the customer. Needed to have the food delivered in time.  How do I get that information in the emails send to customers?  Something like this in the Order creation notification (customer) and Order administrator notification?  ")*

I see that you create an address custom field. In that case, you can edit both address_template files via the menu Display-&gt;Views and add
Gewenste datum levering: {gewenstedatumlevering}

so that it appear in the address.

But isn't that kind of strange to add a custom field of the table address for the delivery date of the order ? You should rather use a custom field of the table order (business edition) so that the date is attached to the order and not to the address.
The field will already be displayed on the order admin notification. You could just copy paste the fields display code to the user email and you should be good to go in that case.

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

- **[didero](/forum/user/1276-didero "View didero's Profile")**
- [![didero's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1276.jpg)](/forum/user/1276-didero "View didero's Profile") Topic Author
- [ Offline](/forum/user/1276-didero)

Less More

- Posts: 66
- Thank you received: 3
-
-
-
- [](http://www.1968dewinkel.nl)
-

15 years 6 months ago [\#15756](#15756) by [didero](/forum/user/1276-didero "View didero's Profile")  Replied by *[didero](/forum/user/1276-didero "View didero's Profile")* on topic *[Re: How to include a custom field in emails](/forum/4-how-to/15738-how-to-include-a-custom-field-in-emails#15756 "For the shop I am still working on I have set up a custom date field to be filled in by the customer. Needed to have the food delivered in time.  How do I get that information in the emails send to customers?  Something like this in the Order creation notification (customer) and Order administrator notification?  ")*

Ok Nicolas,

I see what you mean now. I upgraded from the Essential Edition and that field was created then. Didn't look there anymore. Now I see that I can create a new field as suggested.

Once again thank you for your support!

PS: For people that really need to fill their online shop with a lot of products: the Business Edition has a fine way to copy existing items. And after that you can easily assign them to another Category. Saves a lot of work.

---

[ ](http://www.didero.nl)[ www.didero.nl](http://www.didero.nl)

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

- **[didero](/forum/user/1276-didero "View didero's Profile")**
- [![didero's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1276.jpg)](/forum/user/1276-didero "View didero's Profile") Topic Author
- [ Offline](/forum/user/1276-didero)

Less More

- Posts: 66
- Thank you received: 3
-
-
-
- [](http://www.1968dewinkel.nl)
-

15 years 6 months ago -  15 years 6 months ago [\#15763](#15763) by [didero](/forum/user/1276-didero "View didero's Profile")  Replied by *[didero](/forum/user/1276-didero "View didero's Profile")* on topic *[Re: How to include a custom field in emails](/forum/4-how-to/15738-how-to-include-a-custom-field-in-emails#15763 "For the shop I am still working on I have set up a custom date field to be filled in by the customer. Needed to have the food delivered in time.  How do I get that information in the emails send to customers?  Something like this in the Order creation notification (customer) and Order administrator notification?  ")*

Update: this is really great ![:)](/media/kunena/emoticons/3.png ":)")
As you suggested I have made a new field in the table order.
The date on which delivery shall have to take place now shows up in the checkout process as an extra information field to be filled in by the customer. And of course as set in the back-end!

---

[ ](http://www.didero.nl)[ www.didero.nl](http://www.didero.nl)

Last edit: 15 years 6 months ago by [didero](/forum/user/1276-didero "View didero's Profile").

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

- **[didero](/forum/user/1276-didero "View didero's Profile")**
- [![didero's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1276.jpg)](/forum/user/1276-didero "View didero's Profile") Topic Author
- [ Offline](/forum/user/1276-didero)

Less More

- Posts: 66
- Thank you received: 3
-
-
-
- [](http://www.1968dewinkel.nl)
-

15 years 6 months ago -  15 years 6 months ago [\#15883](#15883) by [didero](/forum/user/1276-didero "View didero's Profile")  Replied by *[didero](/forum/user/1276-didero "View didero's Profile")* on topic *[Re: How to include a custom field in emails](/forum/4-how-to/15738-how-to-include-a-custom-field-in-emails#15883 "For the shop I am still working on I have set up a custom date field to be filled in by the customer. Needed to have the food delivered in time.  How do I get that information in the emails send to customers?  Something like this in the Order creation notification (customer) and Order administrator notification?  ")*

Just a note to say how happy I am with Hikashop Business Edition.
Here is a screenshot of the email sent to the administrator.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/printscreen_2.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/printscreen_2.jpg "&#91;img")

I created 3 extra custom fields in the Table Order

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/printscreen_3.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/printscreen_3.jpg "&#91;img")

My client wanted to have the date of delivery (gewenste datum levering) mentioned as first for picking all the orders by his staff. So I played a bit with the code and hope it is ok. Anyway it works.

Code see attached file.

####  *This attachment is hidden for guests.
Please log in or register to see it.*

One tip: when changing the emails it is best to log off as customer and create a new order and log in again. Otherwise new changes are not visible! That might be the reason why momentis didn't see changes occur? see: [ www.hikashop.com/en/support/forum/4-how-...r-number-format.html](http://www.hikashop.com/en/support/forum/4-how-to/13407-add-custom-user-field-to-order-number-format.html)

---

[ ](http://www.didero.nl)[ www.didero.nl](http://www.didero.nl)

- [ ![printscreen&#95;2.jpg](/forum/attachment/1068) ](/forum/attachment/1068 "printscreen&#95;2.jpg") [ ](/forum/attachment/1068?download=1 "printscreen&#95;2.jpg")
- [ ![printscreen&#95;3.jpg](/forum/attachment/1070) ](/forum/attachment/1070 "printscreen&#95;3.jpg") [ ](/forum/attachment/1070?download=1 "printscreen&#95;3.jpg")

Last edit: 15 years 6 months ago by [didero](/forum/user/1276-didero "View didero's Profile").

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

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