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

#   How do I add a custom user field to emails

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

8 years 10 months ago [\#285377](#285377) by [liewald](/forum/user/53579-liewald "View liewald's Profile")  *[How do I add a custom user field to emails](/forum/25-install-update/893355-how-do-i-add-a-custom-user-field-to-emails#285377 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : firefox 57.0.3  Hi  I have added a custom user field which is a society registration number to the user and it appears on all tables etc however I would like to add the field to the notification emails but cannot find any information on how to do so. Any pointers would really help!")* was created by *[liewald](/forum/user/53579-liewald "View liewald's Profile")*

-- HikaShop version -- : 3.2.2
-- Joomla version -- : Joomla! 2.5.14
-- PHP version -- : 5.6.31
-- Browser(s) name and version -- : firefox 57.0.3

Hi

I have added a custom user field which is a society registration number to the user and it appears on all tables etc however I would like to add the field to the notification emails but cannot find any information on how to do so. Any pointers would really help!

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

Less More

- Posts: 86363
- Thank you received: 14297
-
-

8 years 10 months ago [\#285388](#285388) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How do I add a custom user field to emails](/forum/25-install-update/893355-how-do-i-add-a-custom-user-field-to-emails#285388 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : firefox 57.0.3  Hi  I have added a custom user field which is a society registration number to the user and it appears on all tables etc however I would like to add the field to the notification emails but cannot find any information on how to do so. Any pointers would really help!")*

Hi,

You can edit the emails via the menu System&gt;Emails.
There, you can add such code in the HTML version:
&lt;?php echo $data-&gt;cart-&gt;customer-&gt;XXX; ?&gt;
where XXX is the column name of your custom field of the table "user".

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

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

Less More

- Posts: 58
- Thank you received: 2
-
-

8 years 9 months ago [\#286690](#286690) by [chellemiller11](/forum/user/52634-chellemiller11 "View chellemiller11's Profile")  Replied by *[chellemiller11](/forum/user/52634-chellemiller11 "View chellemiller11's Profile")* on topic *[How do I add a custom user field to emails](/forum/25-install-update/893355-how-do-i-add-a-custom-user-field-to-emails#286690 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : firefox 57.0.3  Hi  I have added a custom user field which is a society registration number to the user and it appears on all tables etc however I would like to add the field to the notification emails but cannot find any information on how to do so. Any pointers would really help!")*

I have a similar question...

What would be the code to add to the HTML email version if we want to include a custom field from the product table? Would it be

&lt;?php echo $data-&gt;product-&gt;XXX; ?&gt;
where XXX is the column name of your custom field of the table "product" ?

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

Less More

- Posts: 86363
- Thank you received: 14297
-
-

8 years 9 months ago [\#286691](#286691) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How do I add a custom user field to emails](/forum/25-install-update/893355-how-do-i-add-a-custom-user-field-to-emails#286691 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : firefox 57.0.3  Hi  I have added a custom user field which is a society registration number to the user and it appears on all tables etc however I would like to add the field to the notification emails but cannot find any information on how to do so. Any pointers would really help!")*

It would be:
{VAR:product.XXX}
Note that the tag must be between the tags &lt;!--{START:PRODUCT_LINE}--&gt; and &lt;!--{END:PRODUCT_LINE}--&gt; in the HTML version.

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

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