Hi all,
I need to show a Custom Filed too in the PDF Invoice, but I can't get it.
I've tried all I saw in this post but it not works.
I need to show a Custom Field called for example "VAT id" in the Attached PDF Invoice.
This is a legal requirement on Italian Invoices.
I set a new Custom Field with HikaShop Admin (Display -> Custom Fields):
Label: Codice Fiscale
Table: address (i need it with address infos of the customer)
Column Name: cod_fiscale
Field type: Text
Display: everywhere (Front-End, Back-End Form, Back-end Listing) and it is all green.
(See attached jpg)
I get no Custom Field in the PDF attached Invoice...
(See attached jpg)
I tried to write some new class instances in plugins/hikashop/attachinvoice/attachinvoice/invoice.php like this:
echo "<br />Codice Fiscale" . $addressClass->displayAddress($order->fields->cod_fiscale,$order->$oneAddress->cod_fiscale,$view);
....
echo $class->displayAddress($this->element->fields,$this->element->billing_address,'order');
....
echo "<br />" . $addressClass->displayAddress($this->element->fields,$this->element->billing_address,'order');
without any success...
I see on PDF only the text parts of echo: "Codice fiscale: " and nothing more.
Why I have no custom field in the PDF Attached Invoice?
How can I write a correct class instance to get my custom field on PDF?
Did I forget something?
I read here that
...I can confirm that it is a custom item field, and they are automatically displayed on the invoice, as long as you have a recent enough version of the PDF invoice plugin (less than a year) and that you have the "backend listing" setting of your field turned on.
But it doesn't works.
Thank in advance for your help.
Best regards.
Fabrizio
Joomla 3.4.3
HikaShop Essential 2.5.0
PLG PDF Attached Invoice: No version showed in Joomla Plugin manager! (but I bought it three weeks ago)