Show custom field in invoices

  • Posts: 71
  • Thank you received: 0
4 years 8 months ago #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 "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: 4 years 8 months ago by vaughan. Reason: Solved

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 8 months ago #316361

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:

<?php echo $this->element->customer->nif; ?>

Last edit: 4 years 8 months ago by nicolas.
The following user(s) said Thank You: vaughan

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

  • Posts: 71
  • Thank you received: 0
4 years 8 months ago #316384

Solved
Thanks!!!!

Great support!!!

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

Time to create page: 0.057 seconds
Powered by Kunena Forum