Skip to main content

Show custom field in invoices

6 years 7 months ago - 6 years 7 months ago #316360 by vaughan
-- 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 "nif" in user table, I need to add this custom field in invoices.

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

How can do it?

Thanks for your help
Last edit: 6 years 7 months ago by vaughan. Reason: Solved

Please Log in or Create an account to join the conversation.

6 years 7 months ago - 6 years 7 months ago #316361 by nicolas
Hi,

You need to edit the view file of the invoice via the menu Display>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:
<?php echo $this->element->customer->nif; ?>
Last edit: 6 years 7 months ago by nicolas.
The following user(s) said Thank You: vaughan

Please Log in or Create an account to join the conversation.

6 years 7 months ago #316384 by vaughan
Solved
Thanks!!!!

Great support!!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum