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

#   Add custom Address fields to admin order email

##

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

Less More

- Posts: 202
- Thank you received: 2
-
-

12 years 10 months ago [\#139069](#139069) by [momentis](/forum/user/364-momentis "View momentis's Profile")  *[Add custom Address fields to admin order email](/forum/35-orders-management/864864-add-custom-address-fields-to-admin-order-email#139069 "-- url of the page with the problem -- :   www.baycorporation.com  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.21 -- Browser(s) name and version -- : Firefox 26.0 -- Error-message(debug-mod must be tuned on) -- : No error message  I have created several custom Address fields (purchase&#95;order, shipping&#95;comments, general&#95;comments) which I would like to include in the Administrator Order Notification email. I have looked over . I cannot seem to figure out how to insert these fields in the email. Is there a way to do this within the email setup (as referenced in above post, was coming in next version of HS)? Or, do I need to edit a php file?  Thanks! Rick")* was created by *[momentis](/forum/user/364-momentis "View momentis's Profile")*

-- url of the page with the problem -- : [ www.baycorporation.com](http://www.baycorporation.com)
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.3.21
-- Browser(s) name and version -- : Firefox 26.0
-- Error-message(debug-mod must be tuned on) -- : No error message

I have created several custom Address fields (purchase_order, shipping_comments, general_comments) which I would like to include in the Administrator Order Notification email. I have looked over [ this thread ](http://www.hikashop.com/forum/orders-management/863886-add-custom-fields-to-order-summary-email.html#134535). I cannot seem to figure out how to insert these fields in the email. Is there a way to do this within the email setup (as referenced in above post, was coming in next version of HS)? Or, do I need to edit a php file?

Thanks!
Rick

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

12 years 10 months ago [\#139167](#139167) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add custom Address fields to admin order email](/forum/35-orders-management/864864-add-custom-address-fields-to-admin-order-email#139167 "-- url of the page with the problem -- :   www.baycorporation.com  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.21 -- Browser(s) name and version -- : Firefox 26.0 -- Error-message(debug-mod must be tuned on) -- : No error message  I have created several custom Address fields (purchase&#95;order, shipping&#95;comments, general&#95;comments) which I would like to include in the Administrator Order Notification email. I have looked over . I cannot seem to figure out how to insert these fields in the email. Is there a way to do this within the email setup (as referenced in above post, was coming in next version of HS)? Or, do I need to edit a php file?  Thanks! Rick")*

Hi,

Have you tried with, for example: Code:

{LINEVAR:address.PURCHASE_ORDER}

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

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

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

Less More

- Posts: 202
- Thank you received: 2
-
-

12 years 10 months ago [\#139181](#139181) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Add custom Address fields to admin order email](/forum/35-orders-management/864864-add-custom-address-fields-to-admin-order-email#139181 "-- url of the page with the problem -- :   www.baycorporation.com  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.21 -- Browser(s) name and version -- : Firefox 26.0 -- Error-message(debug-mod must be tuned on) -- : No error message  I have created several custom Address fields (purchase&#95;order, shipping&#95;comments, general&#95;comments) which I would like to include in the Administrator Order Notification email. I have looked over . I cannot seem to figure out how to insert these fields in the email. Is there a way to do this within the email setup (as referenced in above post, was coming in next version of HS)? Or, do I need to edit a php file?  Thanks! Rick")*

Yes, because I had found that in a prior post. nicolas had mentioned that the functionality to use that verbiage would be implemented in the next release of HS, but I am beginnig to think perhaps that was not included in the latest release.

When I insert that code, that's exactly what shows on the email - {LINEVAR:address.PURCHASE_ORDER}.

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

12 years 10 months ago [\#139184](#139184) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add custom Address fields to admin order email](/forum/35-orders-management/864864-add-custom-address-fields-to-admin-order-email#139184 "-- url of the page with the problem -- :   www.baycorporation.com  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.21 -- Browser(s) name and version -- : Firefox 26.0 -- Error-message(debug-mod must be tuned on) -- : No error message  I have created several custom Address fields (purchase&#95;order, shipping&#95;comments, general&#95;comments) which I would like to include in the Administrator Order Notification email. I have looked over . I cannot seem to figure out how to insert these fields in the email. Is there a way to do this within the email setup (as referenced in above post, was coming in next version of HS)? Or, do I need to edit a php file?  Thanks! Rick")*

Hi,

You have to insert the content into the html part of the mail you want to edit ( order_admin_notification I guess ).
"LINEVAR" is used for products in the cart so you your case, you will use "VAR" instead.

In the mail, you can read the content of the billing_address and of the shipping_address. I suppose that you want to read it from the shipping one.
So you can put in the HTML content Code:

{VAR:shipping_address.purchase_order}

In this code I suppose that "purchase_order" is the namekey of your custom field. It is, in fact, the name of the column in the database.

Regards,

---

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

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

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

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

Less More

- Posts: 202
- Thank you received: 2
-
-

12 years 10 months ago [\#139191](#139191) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Add custom Address fields to admin order email](/forum/35-orders-management/864864-add-custom-address-fields-to-admin-order-email#139191 "-- url of the page with the problem -- :   www.baycorporation.com  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.21 -- Browser(s) name and version -- : Firefox 26.0 -- Error-message(debug-mod must be tuned on) -- : No error message  I have created several custom Address fields (purchase&#95;order, shipping&#95;comments, general&#95;comments) which I would like to include in the Administrator Order Notification email. I have looked over . I cannot seem to figure out how to insert these fields in the email. Is there a way to do this within the email setup (as referenced in above post, was coming in next version of HS)? Or, do I need to edit a php file?  Thanks! Rick")*

That did it Jerome! Thank you SO much!!! I had tried using {VAR..., but it was not working because I was just using "address." instead of "shipping_address.".

Again, think you very much!!

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

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