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

#   Add field NIF in the invoice

##

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

Less More

- Posts: 39
- Thank you received: 1
-
-

8 years 9 months ago [\#285743](#285743) by [alison](/forum/user/12341-alison "View alison's Profile")  *[Add field NIF in the invoice](/forum/2-general-talk-about-hikashop/893431-add-field-nif-in-the-invoice#285743 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.6.33  Hello, I have been following the steps of this link   www.hikashop.com/forum/4-how-to/7412-dis...billing-address.html  and I have deleted the field that had created &quot;address&#95;nif&quot; and now I am aware that all the nifs of the users in the backend have been deleted. I wanted to add the nif in the shipping invoice. I need your help to recover the nif and add it to the invoice as well. Thank you very much")* was created by *[alison](/forum/user/12341-alison "View alison's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.6.33

Hello,
I have been following the steps of this link [ www.hikashop.com/forum/4-how-to/7412-dis...billing-address.html](https://www.hikashop.com/forum/4-how-to/7412-display-custom-address-fields-on-billing-address.html) and I have deleted the field that had created "address_nif" and now I am aware that all the nifs of the users in the backend have been deleted.
I wanted to add the nif in the shipping invoice.
I need your help to recover the nif and add it to the invoice as well.
Thank you very much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5MzQzMS1hZGQtZmllbGQtbmlmLWluLXRoZS1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14266
-
-

8 years 9 months ago [\#285745](#285745) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add field NIF in the invoice](/forum/2-general-talk-about-hikashop/893431-add-field-nif-in-the-invoice#285745 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.6.33  Hello, I have been following the steps of this link   www.hikashop.com/forum/4-how-to/7412-dis...billing-address.html  and I have deleted the field that had created &quot;address&#95;nif&quot; and now I am aware that all the nifs of the users in the backend have been deleted. I wanted to add the nif in the shipping invoice. I need your help to recover the nif and add it to the invoice as well. Thank you very much")*

Hi,

When you delete custom fields, it deletes the corresponding column in the database and thus all the data is lost, even if you recreate the custom field with the same name.
The only solution it to bring back the data from a backup.

Regarding adding the custom field in the invoice, you just want to add its tag in the different address_template view files via the menu Display&gt;Views.

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

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

Less More

- Posts: 39
- Thank you received: 1
-
-

8 years 9 months ago [\#286579](#286579) by [alison](/forum/user/12341-alison "View alison's Profile")  Replied by *[alison](/forum/user/12341-alison "View alison's Profile")* on topic *[Add field NIF in the invoice shipping](/forum/2-general-talk-about-hikashop/893431-add-field-nif-in-the-invoice#286579 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.6.33  Hello, I have been following the steps of this link   www.hikashop.com/forum/4-how-to/7412-dis...billing-address.html  and I have deleted the field that had created &quot;address&#95;nif&quot; and now I am aware that all the nifs of the users in the backend have been deleted. I wanted to add the nif in the shipping invoice. I need your help to recover the nif and add it to the invoice as well. Thank you very much")*

Hello, thanks for the answer.
what code and where do I place it, so that it appears on the shipping invoice.
Thank you very much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5MzQzMS1hZGQtZmllbGQtbmlmLWluLXRoZS1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14266
-
-

8 years 9 months ago [\#286581](#286581) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add field NIF in the invoice shipping](/forum/2-general-talk-about-hikashop/893431-add-field-nif-in-the-invoice#286581 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.6.33  Hello, I have been following the steps of this link   www.hikashop.com/forum/4-how-to/7412-dis...billing-address.html  and I have deleted the field that had created &quot;address&#95;nif&quot; and now I am aware that all the nifs of the users in the backend have been deleted. I wanted to add the nif in the shipping invoice. I need your help to recover the nif and add it to the invoice as well. Thank you very much")*

Hi,

In the HikaShop configuration, under the "checkout" tab, you have an option "address format" where you can add the tag. Just do the same as the other tags already there.

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

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

Less More

- Posts: 39
- Thank you received: 1
-
-

8 years 8 months ago [\#287081](#287081) by [alison](/forum/user/12341-alison "View alison's Profile")  Replied by *[alison](/forum/user/12341-alison "View alison's Profile")* on topic *[Add field NIF in the invoice shipping](/forum/2-general-talk-about-hikashop/893431-add-field-nif-in-the-invoice#287081 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.6.33  Hello, I have been following the steps of this link   www.hikashop.com/forum/4-how-to/7412-dis...billing-address.html  and I have deleted the field that had created &quot;address&#95;nif&quot; and now I am aware that all the nifs of the users in the backend have been deleted. I wanted to add the nif in the shipping invoice. I need your help to recover the nif and add it to the invoice as well. Thank you very much")*

Hello,
I have added the tag exactly as you said but it does not appear in the NIF in the invoice. Attached screenshots of the last purchase, of the tag that I added.
I hope you help me because it is urgent.
Thank you very much  [ ![imp&#95;1.jpg](/forum/attachment/42420) ](/forum/attachment/42420 "imp&#95;1.jpg")

[ ![imp&#95;3.jpg](/forum/attachment/42421) ](/forum/attachment/42421 "imp&#95;3.jpg")

[ ![imp&#95;2.jpg](/forum/attachment/42422) ](/forum/attachment/42422 "imp&#95;2.jpg")

- [ ![imp&#95;1.jpg](/forum/attachment/42420) ](/forum/attachment/42420 "imp&#95;1.jpg") [ ](/forum/attachment/42420?download=1 "imp&#95;1.jpg")
- [ ![imp&#95;3.jpg](/forum/attachment/42421) ](/forum/attachment/42421 "imp&#95;3.jpg") [ ](/forum/attachment/42421?download=1 "imp&#95;3.jpg")
- [ ![imp&#95;2.jpg](/forum/attachment/42422) ](/forum/attachment/42422 "imp&#95;2.jpg") [ ](/forum/attachment/42422?download=1 "imp&#95;2.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5MzQzMS1hZGQtZmllbGQtbmlmLWluLXRoZS1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14266
-
-

8 years 8 months ago [\#287082](#287082) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add field NIF in the invoice shipping](/forum/2-general-talk-about-hikashop/893431-add-field-nif-in-the-invoice#287082 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.6.33  Hello, I have been following the steps of this link   www.hikashop.com/forum/4-how-to/7412-dis...billing-address.html  and I have deleted the field that had created &quot;address&#95;nif&quot; and now I am aware that all the nifs of the users in the backend have been deleted. I wanted to add the nif in the shipping invoice. I need your help to recover the nif and add it to the invoice as well. Thank you very much")*

Hi,

That's the "mini address format" parameter. I was talking about the "address format" parameter. I had forgotten that you had a really old version of HikaShop. This option was added since HikaShop 3.0.0.
Before that, you need to edit the different files named "address_template" via the menu Display&gt;Views in order to add the tag to them in the same way.

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

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

Less More

- Posts: 39
- Thank you received: 1
-
-

8 years 8 months ago [\#287153](#287153) by [alison](/forum/user/12341-alison "View alison's Profile")  Replied by *[alison](/forum/user/12341-alison "View alison's Profile")* on topic *[Add field NIF in the invoice shipping](/forum/2-general-talk-about-hikashop/893431-add-field-nif-in-the-invoice#287153 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.6.33  Hello, I have been following the steps of this link   www.hikashop.com/forum/4-how-to/7412-dis...billing-address.html  and I have deleted the field that had created &quot;address&#95;nif&quot; and now I am aware that all the nifs of the users in the backend have been deleted. I wanted to add the nif in the shipping invoice. I need your help to recover the nif and add it to the invoice as well. Thank you very much")*

Hi, I added the label in the address_template of the front_end i the back_end, I created a new order after emptying cache but the NIF does not appear in the invoice, is the code that I have put in the correct location correct?
Thank you very much
[ ![back.jpg](/forum/attachment/42452) ](/forum/attachment/42452 "back.jpg")

[ ![front.jpg](/forum/attachment/42453) ](/forum/attachment/42453 "front.jpg")

- [ ![back.jpg](/forum/attachment/42452) ](/forum/attachment/42452 "back.jpg") [ ](/forum/attachment/42452?download=1 "back.jpg")
- [ ![front.jpg](/forum/attachment/42453) ](/forum/attachment/42453 "front.jpg") [ ](/forum/attachment/42453?download=1 "front.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5MzQzMS1hZGQtZmllbGQtbmlmLWluLXRoZS1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14266
-
-

8 years 8 months ago [\#287156](#287156) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add field NIF in the invoice shipping](/forum/2-general-talk-about-hikashop/893431-add-field-nif-in-the-invoice#287156 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.6.33  Hello, I have been following the steps of this link   www.hikashop.com/forum/4-how-to/7412-dis...billing-address.html  and I have deleted the field that had created &quot;address&#95;nif&quot; and now I am aware that all the nifs of the users in the backend have been deleted. I wanted to add the nif in the shipping invoice. I need your help to recover the nif and add it to the invoice as well. Thank you very much")*

Hi,

You need to respect the format of the tags.
As you can see with the other tags, you need to put the column name of your custom field with brackets around it.
But the column of your custom field is not address_nifcif it's only nifcif.
So the tag should be {nifcif} and not {address_nifcif}

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

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

[](#top)
