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

#   Add Custom Fields to Order Summary Email

##

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

Less More

- Posts: 214
- Thank you received: 1
-
-

12 years 11 months ago [\#134007](#134007) by [matps](/forum/user/13122-matps "View matps's Profile")  *[Add Custom Fields to Order Summary Email](/forum/35-orders-management/863886-add-custom-fields-to-order-summary-email#134007 "Hi There,  I'm wondering if this is possible. Firstly, see the following screen shots  What I've been asked to do is add the brewery name to the order summary email, in this case it's the text &quot;Wold Top -&quot;.  Now I've already created a custom field in the products table, and I'm inserting it into product &gt; listing &gt; img&#95;title.php to display the brewery on the product listing page. So my question is can I use this same code (which is row-&gt;brewer; ?&gt;) to display that custom field on the order summary email or do I have to do something different?  Kind Regards,  Matthew")* was created by *[matps](/forum/user/13122-matps "View matps's Profile")*

Hi There,

I'm wondering if this is possible. Firstly, see the following screen shots

[ ![he420fde.PNG](/forum/attachment/13940) ](/forum/attachment/13940 "he420fde.PNG")

[ ![h7d3253c.PNG](/forum/attachment/13941) ](/forum/attachment/13941 "h7d3253c.PNG")

What I've been asked to do is add the brewery name to the order summary email, in this case it's the text "Wold Top -".

Now I've already created a custom field in the products table, and I'm inserting it into product &gt; listing &gt; img_title.php to display the brewery on the product listing page. So my question is can I use this same code (which is &lt;?php echo $this-&gt;row-&gt;brewer; ?&gt;) to display that custom field on the order summary email or do I have to do something different?

Kind Regards,

Matthew

- [ ![he420fde.PNG](/forum/attachment/13940) ](/forum/attachment/13940 "he420fde.PNG") [ ](/forum/attachment/13940?download=1 "he420fde.PNG")
- [ ![h7d3253c.PNG](/forum/attachment/13941) ](/forum/attachment/13941 "h7d3253c.PNG") [ ](/forum/attachment/13941?download=1 "h7d3253c.PNG")

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

12 years 11 months ago [\#134019](#134019) 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 Custom Fields to Order Summary Email](/forum/35-orders-management/863886-add-custom-fields-to-order-summary-email#134019 "Hi There,  I'm wondering if this is possible. Firstly, see the following screen shots  What I've been asked to do is add the brewery name to the order summary email, in this case it's the text &quot;Wold Top -&quot;.  Now I've already created a custom field in the products table, and I'm inserting it into product &gt; listing &gt; img&#95;title.php to display the brewery on the product listing page. So my question is can I use this same code (which is row-&gt;brewer; ?&gt;) to display that custom field on the order summary email or do I have to do something different?  Kind Regards,  Matthew")*

Hi,

Note that if you use a custom field from the "Item" table, your custom field will automatically show through your invoice and emails.

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

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

Less More

- Posts: 214
- Thank you received: 1
-
-

12 years 11 months ago [\#134024](#134024) by [matps](/forum/user/13122-matps "View matps's Profile")  Replied by *[matps](/forum/user/13122-matps "View matps's Profile")* on topic *[Add Custom Fields to Order Summary Email](/forum/35-orders-management/863886-add-custom-fields-to-order-summary-email#134024 "Hi There,  I'm wondering if this is possible. Firstly, see the following screen shots  What I've been asked to do is add the brewery name to the order summary email, in this case it's the text &quot;Wold Top -&quot;.  Now I've already created a custom field in the products table, and I'm inserting it into product &gt; listing &gt; img&#95;title.php to display the brewery on the product listing page. So my question is can I use this same code (which is row-&gt;brewer; ?&gt;) to display that custom field on the order summary email or do I have to do something different?  Kind Regards,  Matthew")*

Hi Mohamed,

I wasn't looking to create another new custom field, I was looking to insert a custom field I had already created into an email if that makes sense?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg2Mzg4Ni1hZGQtY3VzdG9tLWZpZWxkcy10by1vcmRlci1zdW1tYXJ5LWVtYWlsP3RtcGw9bWFya2Rvd24=) 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 11 months ago [\#134103](#134103) 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 Fields to Order Summary Email](/forum/35-orders-management/863886-add-custom-fields-to-order-summary-email#134103 "Hi There,  I'm wondering if this is possible. Firstly, see the following screen shots  What I've been asked to do is add the brewery name to the order summary email, in this case it's the text &quot;Wold Top -&quot;.  Now I've already created a custom field in the products table, and I'm inserting it into product &gt; listing &gt; img&#95;title.php to display the brewery on the product listing page. So my question is can I use this same code (which is row-&gt;brewer; ?&gt;) to display that custom field on the order summary email or do I have to do something different?  Kind Regards,  Matthew")*

Hi,

In the email you can add the following tag: Code:

{LINEVAR:product.CUSTOM_FIELD_NAME}

after this line: Code:

{LINEVAR:PRODUCT_NAME}&lt;!--{IF:ORDER_PRODUCT_CODE}--&gt; {LINEVAR:PRODUCT_CODE}&lt;!--{ENDIF:ORDER_PRODUCT_CODE}--&gt;

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

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

Less More

- Posts: 214
- Thank you received: 1
-
-

12 years 11 months ago -  12 years 11 months ago [\#134107](#134107) by [matps](/forum/user/13122-matps "View matps's Profile")  Replied by *[matps](/forum/user/13122-matps "View matps's Profile")* on topic *[Add Custom Fields to Order Summary Email](/forum/35-orders-management/863886-add-custom-fields-to-order-summary-email#134107 "Hi There,  I'm wondering if this is possible. Firstly, see the following screen shots  What I've been asked to do is add the brewery name to the order summary email, in this case it's the text &quot;Wold Top -&quot;.  Now I've already created a custom field in the products table, and I'm inserting it into product &gt; listing &gt; img&#95;title.php to display the brewery on the product listing page. So my question is can I use this same code (which is row-&gt;brewer; ?&gt;) to display that custom field on the order summary email or do I have to do something different?  Kind Regards,  Matthew")*

Hi Xavier,

I'm afraid I don't see the line

{LINEVAR:PRODUCT_NAME}&lt;!--{IF:ORDER_PRODUCT_CODE}--&gt; {LINEVAR:PRODUCT_CODE}&lt;!--{ENDIF:ORDER_PRODUCT_CODE}--&gt;

I assume I should be looking in the email 'Order creation notification'?

[ ![hde66be4.PNG](/forum/attachment/13970) ](/forum/attachment/13970 "hde66be4.PNG")

- [ ![hde66be4.PNG](/forum/attachment/13970) ](/forum/attachment/13970 "hde66be4.PNG") [ ](/forum/attachment/13970?download=1 "hde66be4.PNG")

Last edit: 12 years 11 months ago by [matps](/forum/user/13122-matps "View matps's Profile").

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

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

Less More

- Posts: 214
- Thank you received: 1
-
-

12 years 11 months ago [\#134398](#134398) by [matps](/forum/user/13122-matps "View matps's Profile")  Replied by *[matps](/forum/user/13122-matps "View matps's Profile")* on topic *[Add Custom Fields to Order Summary Email](/forum/35-orders-management/863886-add-custom-fields-to-order-summary-email#134398 "Hi There,  I'm wondering if this is possible. Firstly, see the following screen shots  What I've been asked to do is add the brewery name to the order summary email, in this case it's the text &quot;Wold Top -&quot;.  Now I've already created a custom field in the products table, and I'm inserting it into product &gt; listing &gt; img&#95;title.php to display the brewery on the product listing page. So my question is can I use this same code (which is row-&gt;brewer; ?&gt;) to display that custom field on the order summary email or do I have to do something different?  Kind Regards,  Matthew")*

Hi Guys, wondering if I could have abit more help with this?

I tried putting {LINEVAR:product.CUSTOM_FIELD_NAME} after it says {LINEVAR:PRODUCT_NAME} which didn't seem to work, but I'm not sure if I'm looking in the right place?

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

12 years 11 months ago [\#134469](#134469) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add Custom Fields to Order Summary Email](/forum/35-orders-management/863886-add-custom-fields-to-order-summary-email#134469 "Hi There,  I'm wondering if this is possible. Firstly, see the following screen shots  What I've been asked to do is add the brewery name to the order summary email, in this case it's the text &quot;Wold Top -&quot;.  Now I've already created a custom field in the products table, and I'm inserting it into product &gt; listing &gt; img&#95;title.php to display the brewery on the product listing page. So my question is can I use this same code (which is row-&gt;brewer; ?&gt;) to display that custom field on the order summary email or do I have to do something different?  Kind Regards,  Matthew")*

Xavier was correct and wrong in his answer ![:)](/media/kunena/emoticons/3.png ":)")
The problem with what he told you is that the tags he gave you will only exist in next version of HikaShop.
With the current version of HikaShop, such modification is much more complex as you also need to edit the preload file corresponding to the email in the folder media/com_hikashop/mail/ in order to add php code to generate the var tag that you'll be able to use on the email template. If you're well versed into programming, look at what we do for the product_name field and do the same for your custom field column name and that will work. If not, then I would recommend to wait for next version of HikaShop in one or two weeks in order to be able to do what Xavier explained.

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

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

Less More

- Posts: 214
- Thank you received: 1
-
-

12 years 11 months ago [\#134535](#134535) by [matps](/forum/user/13122-matps "View matps's Profile")  Replied by *[matps](/forum/user/13122-matps "View matps's Profile")* on topic *[Add Custom Fields to Order Summary Email](/forum/35-orders-management/863886-add-custom-fields-to-order-summary-email#134535 "Hi There,  I'm wondering if this is possible. Firstly, see the following screen shots  What I've been asked to do is add the brewery name to the order summary email, in this case it's the text &quot;Wold Top -&quot;.  Now I've already created a custom field in the products table, and I'm inserting it into product &gt; listing &gt; img&#95;title.php to display the brewery on the product listing page. So my question is can I use this same code (which is row-&gt;brewer; ?&gt;) to display that custom field on the order summary email or do I have to do something different?  Kind Regards,  Matthew")*

While I am starting to understand PHP a lot more then I did thanks to the help from all you guys, I certainly wouldn't call myself "well versed" at all! I'll look into what you suggested, as I like to give things a go, but I think it would probably make sense to wait for the next update!

Thanks Guys

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

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

[](#top)
