abolfazl-m Posted July 6, 2016 Share Posted July 6, 2016 hi please help me to remove filed gender from registration form. thanks Link to comment Share on other sites More sharing options...
abolfazl-m Posted July 8, 2016 Author Share Posted July 8, 2016 help Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2016 Share Posted July 9, 2016 Quote How To Remove Title From Authentication in Prestashop 1.6.?Log into your FTP server Go into themes/default-theme directory and open authentication.tpl file. Around line 112 you should find this piece of code. <div class="cleafix gender-line"> <label>{l s='Title'}</label> {foreach from=$genders key=k item=gender} <div class="radio-inline"> <label for="id_gender{$gender->id}" class="top"> <input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id} checked="checked"{/if} /> {$gender->name} </label> </div> {/foreach} </div> We will comment this piece of code out, like so {* <div class="cleafix gender-line"> <label>{l s='Title'}</label> {foreach from=$genders key=k item=gender} <div class="radio-inline"> <label for="id_gender{$gender->id}" class="top"> <input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id} checked="checked"{/if} /> {$gender->name} </label> </div> {/foreach} </div> *} You need to do the same in authentication.tpl at line 424, in identity.tpl at line 59 and finally at order-opc-new-account.tpl at line 72! It would be redundant to write the exact changes, as they’re very similar in each of those files. If you’re unable to find the code at these lines, search the file for {l s=’Title’} Save the changes and do not forget to Clear cache afterwards! 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