Jump to content

Add "other" field to pdf invoice prestashop 1.6.0.11


Recommended Posts

Hello

 

Can anyone guide me how to add the 'other' field from address to the pdf invoice template ?

 

I have added from localization->countries the other field but it is still missing from invoice .

 

 

I have looked in classes/pdf/HTMLTemplateInvoice.php and saw that the fields are not generated separately . 

I think that the address displayed in the pdf comes from this variable 

$formatted_invoice_address = AddressFormat::generateAddress($invoice_address, array(), '<br />', ' ');

So I think it is generated dynamically 

 

Does anyone any tweak how can I add the other field to the pdf ? 

It can be done by adding the field to the generated address or by creating a new variable but I don't know exactly how to accomplish that .

 

Thank you 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...