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

#   Show custom field in invoices

##

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

Less More

- Posts: 71
- Thank you received: 0
-
-

6 years 8 months ago -  6 years 8 months ago [\#316360](#316360) by [vaughan](/forum/user/12479-vaughan "View vaughan's Profile")  *[Show custom field in invoices](/forum/27-checkout/899306-show-custom-field-in-invoices#316360 "-- url of the page with the problem -- :   wpb.es/  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2  Hi  I have a custom field with row name &quot;nif&quot; in user table, I need to add this custom field in invoices.  I try in configuration--&gt; adrres template, I add {nif} but don't show anything.  How can do it?  Thanks for your help")* was created by *[vaughan](/forum/user/12479-vaughan "View vaughan's Profile")*

-- url of the page with the problem -- : [ wpb.es/](https://wpb.es/)
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.2

Hi

I have a custom field with row name "nif" in user table, I need to add this custom field in invoices.

I try in configuration--&gt; adrres template, I add {nif} but don't show anything.

How can do it?

Thanks for your help

Last edit: 6 years 8 months ago by [vaughan](/forum/user/12479-vaughan "View vaughan's Profile"). Reason: Solved

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

6 years 8 months ago -  6 years 8 months ago [\#316361](#316361) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show custom field in invoices](/forum/27-checkout/899306-show-custom-field-in-invoices#316361 "-- url of the page with the problem -- :   wpb.es/  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2  Hi  I have a custom field with row name &quot;nif&quot; in user table, I need to add this custom field in invoices.  I try in configuration--&gt; adrres template, I add {nif} but don't show anything.  How can do it?  Thanks for your help")*

Hi,

You need to edit the view file of the invoice via the menu Display&gt;Views.
For the invoice you can print in the backend, you'll want to edit the file "invoice" of the view "order" and you'll be able to use such code in there: Code:

&lt;?php echo $this-&gt;element-&gt;customer-&gt;nif; ?&gt;

Last edit: 6 years 8 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

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

Less More

- Posts: 71
- Thank you received: 0
-
-

6 years 8 months ago [\#316384](#316384) by [vaughan](/forum/user/12479-vaughan "View vaughan's Profile")  Replied by *[vaughan](/forum/user/12479-vaughan "View vaughan's Profile")* on topic *[Show custom field in invoices](/forum/27-checkout/899306-show-custom-field-in-invoices#316384 "-- url of the page with the problem -- :   wpb.es/  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2  Hi  I have a custom field with row name &quot;nif&quot; in user table, I need to add this custom field in invoices.  I try in configuration--&gt; adrres template, I add {nif} but don't show anything.  How can do it?  Thanks for your help")*

Solved
Thanks!!!!

Great support!!!

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