Anonym Posted February 16, 2015 Share Posted February 16, 2015 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 1 Link to comment Share on other sites More sharing options...
tuk66 Posted February 17, 2015 Share Posted February 17, 2015 Your way is right. Have you added the other field for all countries? Does the field contain any content? 1 Link to comment Share on other sites More sharing options...
Anonym Posted February 17, 2015 Author Share Posted February 17, 2015 Oh Jesus , I can't believe that . The order invoice at what I was looking did not had any content in other field . I looked for an order with content in other field and it seems that it is working . Thank you Link to comment Share on other sites More sharing options...
Recommended Posts