Jump to content

How to delete tilte (mr, mrs) in registration form


Recommended Posts

I  did it by modifying customer-form.tpl (based on an advise from this forum)

  <section>
    {block "form_fields"}
      {foreach from=$formFields item="field"}
{** JBW 2018-11-12: Remove gender/title fields from registration *}      
        {if $field.name != 'id_gender'}
            {block "form_field"}
                {form_field field=$field}
            {/block}
        {/if}         
{**        {block "form_field"}
          {form_field field=$field}
        {/block}
*}
      {/foreach}
      {$hook_create_account_form nofilter}
    {/block}
  </section>

Link to comment
Share on other sites

Just now, JBW said:

I  did it by modifying customer-form.tpl (based on an advise from this forum)

  <section>
    {block "form_fields"}
      {foreach from=$formFields item="field"}
{** JBW 2018-11-12: Remove gender/title fields from registration *}      
        {if $field.name != 'id_gender'}
            {block "form_field"}
                {form_field field=$field}
            {/block}
        {/if}         
{**        {block "form_field"}
          {form_field field=$field}
        {/block}
*}
      {/foreach}
      {$hook_create_account_form nofilter}
    {/block}
  </section>

Just post this code? 

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...