Jump to content

how to remove field gender register form


abolfazl-m

Recommended Posts

 

 

How To Remove Title From Authentication in Prestashop 1.6.?
  1. Log into your FTP server
  2. Go into themes/default-theme directory and open authentication.tpl file.
  3. 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>
  4. 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>
    *}
  5. 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’}

  6. Save the changes and do not forget to Clear cache afterwards!
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...