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

#   Add certain field in confirmation e-mail

##

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

Less More

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

10 years 1 month ago [\#251505](#251505) by [joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")  *[Add certain field in confirmation e-mail](/forum/35-orders-management/886736-add-certain-field-in-confirmation-e-mail#251505 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.18 -- Browser(s) name and version -- : firefox  Hi,  I want to setup a custom confirmation e-mail so it can be insert automatic in our invoice-system. Therefore I need to enter some fields, each on a separate line. For example:  Order: {VAR:ORDER&#95;NUMBER}|| IP: {VAR:order.order&#95;ip}|| Firste name and last name:???? || City: ????||  The first ones (order and IP) are no problemand working OK, but how can I add firstname, middle name, lastname or city for example? I hope someone can help me.  Regards and thanks, Joost")* was created by *[joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.18
-- Browser(s) name and version -- : firefox

Hi,

I want to setup a custom confirmation e-mail so it can be insert automatic in our invoice-system. Therefore I need to enter some fields, each on a separate line. For example:

Order: {VAR:ORDER_NUMBER}&#124;&#124;&lt;br&gt;
IP: {VAR:order.order_ip}&#124;&#124;&lt;br&gt;
Firste name and last name:???? &#124;&#124;&lt;br&gt;
City: ????&#124;&#124;&lt;br&gt;

The first ones (order and IP) are no problemand working OK, but how can I add firstname, middle name, lastname or city for example?
I hope someone can help me.

Regards and thanks,
Joost

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

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 1 month ago [\#251531](#251531) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add certain field in confirmation e-mail](/forum/35-orders-management/886736-add-certain-field-in-confirmation-e-mail#251531 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.18 -- Browser(s) name and version -- : firefox  Hi,  I want to setup a custom confirmation e-mail so it can be insert automatic in our invoice-system. Therefore I need to enter some fields, each on a separate line. For example:  Order: {VAR:ORDER&#95;NUMBER}|| IP: {VAR:order.order&#95;ip}|| Firste name and last name:???? || City: ????||  The first ones (order and IP) are no problemand working OK, but how can I add firstname, middle name, lastname or city for example? I hope someone can help me.  Regards and thanks, Joost")*

Hi,

Sure:
{VAR:billing_address.address_firstname}
{VAR:billing_address.address_middle_name}
{VAR:billing_address.address_lastname}
{VAR:billing_address.address_city}

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

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

Less More

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

10 years 1 month ago [\#251626](#251626) by [joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")  Replied by *[joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")* on topic *[Add certain field in confirmation e-mail](/forum/35-orders-management/886736-add-certain-field-in-confirmation-e-mail#251626 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.18 -- Browser(s) name and version -- : firefox  Hi,  I want to setup a custom confirmation e-mail so it can be insert automatic in our invoice-system. Therefore I need to enter some fields, each on a separate line. For example:  Order: {VAR:ORDER&#95;NUMBER}|| IP: {VAR:order.order&#95;ip}|| Firste name and last name:???? || City: ????||  The first ones (order and IP) are no problemand working OK, but how can I add firstname, middle name, lastname or city for example? I hope someone can help me.  Regards and thanks, Joost")*

Hi Nicolas,

Thanks for the quick reply. This works like a charm! I have still some fields with problems/questions:

1. How can I add the date/time of the order in the e-mail?
2. How can I add the e-mailadress of the customer?

Ik hope you can help me with this.

regards,
Joost

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

10 years 1 month ago [\#251637](#251637) 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 *[Add certain field in confirmation e-mail](/forum/35-orders-management/886736-add-certain-field-in-confirmation-e-mail#251637 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.18 -- Browser(s) name and version -- : firefox  Hi,  I want to setup a custom confirmation e-mail so it can be insert automatic in our invoice-system. Therefore I need to enter some fields, each on a separate line. For example:  Order: {VAR:ORDER&#95;NUMBER}|| IP: {VAR:order.order&#95;ip}|| Firste name and last name:???? || City: ????||  The first ones (order and IP) are no problemand working OK, but how can I add firstname, middle name, lastname or city for example? I hope someone can help me.  Regards and thanks, Joost")*

Hello Joost,

1. The solution will be to edit the "Preload version" of your email and add that kind of code at the end : Code:

if(isset($data-&gt;order_created)) $vars['ORDER_DATE'] = date('m.d.y H:i:s',$data-&gt;order_created);

And then display the order creation date through the "HTML version" by using the following code : Code:

{VAR:ORDER_DATE}

2. For the user email, you'll find the "User id" through the "$data-&gt;order_user_id" variable, so you'll just have to retrieve your user email and then display it like I showed you through the point 1.

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

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