VafCat Posted June 11, 2013 Share Posted June 11, 2013 Hi, I active the DNI field and in the order-opc-new-account page is showing the field in the first address form, but in the invoice address form not. anyone know why? <p class="text dni_invoice"> <label for="dni">{l s='Identification number'}</label> <input type="text" class="text" name="dni_invoice" id="dni_invoice" value="{if isset($guestInformations) && $guestInformations.dni}{$guestInformations.dni}{/if}" /> <!-- <span class="form_info">{l s='DNI / NIF / NIE'}</span> --> </p> Link to comment Share on other sites More sharing options...
Martonita Posted July 14, 2013 Share Posted July 14, 2013 I have the same problem. It's a know bug? Link to comment Share on other sites More sharing options...
Martonita Posted July 14, 2013 Share Posted July 14, 2013 (edited) Seems there was a missing line of code just before the <p> {elseif $field_name eq "dni"} I tried this way and now is showing, and I can also edit things, like remove the text area for additional info. I couldn't before. {elseif $field_name eq "dni"} <p class="required text dni_invoice"> <label for="dni">{l s='Identification number'}</label> <input type="text" class="text" name="dni_invoice" id="dni_invoice" value="{if isset($guestInformations) && $guestInformations.dni}{$guestInformations.dni}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </p> Edited July 14, 2013 by Martonita (see edit history) Link to comment Share on other sites More sharing options...
AlmeraGTI Posted January 22, 2014 Share Posted January 22, 2014 Hello I am having the same problem that the customer can input the DNI/NIF/NIE the field when placing the order, but the DNI/NIF/NIE I does not appear in the invoice. I have had a look at the invoice.tpl but don´t see the original line of code {elseif $field_name eq "dni"} Could you please indicate what file to amend and include the code above to make it work, Thanks I am currently using PrestaShop™ 1.5.6.1Regards Sy Link to comment Share on other sites More sharing options...
tuk66 Posted January 22, 2014 Share Posted January 22, 2014 Look at the Address format under Countries. You should see "dni" for all enabled countries. Link to comment Share on other sites More sharing options...
AlmeraGTI Posted January 22, 2014 Share Posted January 22, 2014 Look at the Address format under Countries. You should see "dni" for all enabled countries. The above is correct and my customers can fill in the DNI/NIE/NiF numbers and it appears on the account and orders, but I need this information to be seen on the invoices in the PDF. I believe that the fix above will work but I am not sure where to include that code, I have looked at the invoice-b2b.tpl and invoice.tpl but I can´t find this statement {elseif $field_name eq "dni"} Link to comment Share on other sites More sharing options...
Recommended Posts