rschonhoff Posted April 23, 2013 Share Posted April 23, 2013 what do i need to do to remove the tax id block on the registration screen and remove the date of birth section Link to comment Share on other sites More sharing options...
NemoPS Posted April 24, 2013 Share Posted April 24, 2013 First, be sure no country requires that block (none of the ones you want to suppport, at least) The open up order-opc-new-account (if you usde opc) and find <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> Add style="display:none" to that block, and do the same with the birthday. Use...addresses.tpl I believe, if you don't use opc Link to comment Share on other sites More sharing options...
rschonhoff Posted April 24, 2013 Author Share Posted April 24, 2013 Thank you for your reply. being new to prestashop I am unfamiliar with what OPC means. I found this entry for the registration form in authentication.tpl. the tax id block looks like this <fieldset class="account_creation dni"> <h3>{l s='Tax identification'}</h3> <p class="required text"> <label for="dni">{l s='Identification number'}</label> <input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </p> </fieldset> Can I just remove this> and is this the right file? Link to comment Share on other sites More sharing options...
NemoPS Posted April 24, 2013 Share Posted April 24, 2013 it...uh..se3ems to be that, try adding 'hidden' to the classes of that p tag, that way it will be hidden Link to comment Share on other sites More sharing options...
tdr170 Posted April 24, 2013 Share Posted April 24, 2013 Thank you for your reply. being new to prestashop I am unfamiliar with what OPC means. I found this entry for the registration form in authentication.tpl. the tax id block looks like this <fieldset class="account_creation dni"> <h3>{l s='Tax identification'}</h3> <p class="required text"> <label for="dni">{l s='Identification number'}</label> <input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </p> </fieldset> Can I just remove this> and is this the right file? This was fixed in Prestashop so you must have an older 1.5 version. The correct fix for this is actually done in themes/default/css/authentication.css add the lines below and all will be OK. http://forge.prestashop.com/browse/PSCFV-6262 #account-creation_form .id_state, #account-creation_form .dni, #account-creation_form .postcode { display: none; } Link to comment Share on other sites More sharing options...
rschonhoff Posted April 24, 2013 Author Share Posted April 24, 2013 Thank you that worked perfectly. Is there a similar way to turn off date of birth in personal information block on the registration form Link to comment Share on other sites More sharing options...
tdr170 Posted April 24, 2013 Share Posted April 24, 2013 No for that you will need to comment out or delete these sections from the TPL file. There are two areas in the TPL file that have the birthday, one for instant checkout and one for standard checkout. To comment out the code do this <!-- code is here -->. Link to comment Share on other sites More sharing options...
monkata Posted August 9, 2013 Share Posted August 9, 2013 Hello, I try to remove it as I delete the following {l s='Identification number'} <input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" /> {l s='DNI / NIF / NIE'} I use the file authentication.tp, which is in the folder themes. What I have to do to remove the Identification number? Link to comment Share on other sites More sharing options...
tdr170 Posted August 10, 2013 Share Posted August 10, 2013 (edited) Hello, I try to remove it as I delete the following {l s='Identification number'} <input type="text"class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}"/> {l s='DNI / NIF / NIE'} I use the file authentication.tp, which is in the folder themes. What I have to do to remove the Identification number? Not sure what you want but please read post #5. Edited August 10, 2013 by tdr170 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now