- Posts: 71
- Thank you received: 0
Show custom field in invoices
6 years 7 months ago - 6 years 7 months ago #316360
by vaughan
Show custom field in invoices was created 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
-- 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
Replied by nicolas on topic Show custom field in invoices
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:
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
Replied by vaughan on topic Show custom field in invoices
Solved
Thanks!!!!
Great support!!!
Thanks!!!!
Great support!!!
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds