l33tas Posted October 4, 2013 Share Posted October 4, 2013 How to add company code field in address form, and this field I can use in Invoice pdf. Link to comment Share on other sites More sharing options...
vekia Posted October 5, 2013 Share Posted October 5, 2013 hello what you mean by conpany code? VAT number? Link to comment Share on other sites More sharing options...
l33tas Posted October 5, 2013 Author Share Posted October 5, 2013 No, not vat.. In my country for company info needs 3 field: 1. company name; 2. VAT; 3. company code. company code is 9 symbol like 123456789 Link to comment Share on other sites More sharing options...
l33tas Posted October 6, 2013 Author Share Posted October 6, 2013 any idea? Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 hey, may i know where you live? have you installed localizaiton pack related to your country? Link to comment Share on other sites More sharing options...
l33tas Posted October 8, 2013 Author Share Posted October 8, 2013 Hi, I am from Lithuania. From where I can get localization pack? I make change on back-ofice, I change localization Localization->... Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 and what about DNI number? i think that this is what you're looking for go to localization > countries tab in your back office then click on edit button near your country Link to comment Share on other sites More sharing options...
l33tas Posted October 8, 2013 Author Share Posted October 8, 2013 Yes its works, but how this code print into pdf invoice? Now printing only vat and compnay and etc.. but dont print dni Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 i think that @tuk66 is the right person to help in cases related to the invoices, he is a specialist in cases like this Link to comment Share on other sites More sharing options...
tuk66 Posted October 8, 2013 Share Posted October 8, 2013 Yes its works, but how this code print into pdf invoice? Now printing only vat and compnay and etc.. but dont print dni What is your PrestaShop version? It should work even for invoices in v1.5. Link to comment Share on other sites More sharing options...
l33tas Posted October 8, 2013 Author Share Posted October 8, 2013 v1.5.5. but dont show.. where I can edit it? Link to comment Share on other sites More sharing options...
tuk66 Posted October 8, 2013 Share Posted October 8, 2013 There is nothing to edit. If you have "dni" in the address format for all countries (!) it should be in the invoice too. Code is in /classes/pdf/HTMLTemplateInvoice.php, AddressFormat::generateAddress() in the getContent() function. Link to comment Share on other sites More sharing options...
sting5 Posted August 7, 2016 Share Posted August 7, 2016 I know it's an old topic to revoke but for some reason adding DNI field into address through localization > countries does not make it to appear when registering. VAT does appear, but DNI doesn't - maybe anyone had same problem??? Link to comment Share on other sites More sharing options...
Recommended Posts