Jump to content

Removing age field in new customer registration


Recommended Posts

Hi,

 

I don't believe it can be done from the back end but the following work is what I do:

 

 

in your themes/themenamefolder/ look for authentication.tpl and order-opc-new-account.tpl.

 

Within these files you will find the following twice in authentication.tpl and order-opc-new-account.tpl, either you can delete it or better would be to comment it out with html comment tags.

 

<p class="select">

<span>{l s='Date of Birth'}</span>

<select id="days" name="days">

<option value="">-</option>

{foreach from=$days item=day}

<option value="{$day|escape:'htmlall':'UTF-8'}" {if ($sl_day == $day)} selected="selected"{/if}>{$day|escape:'htmlall':'UTF-8'}  </option>

{/foreach}

</select>

{*

{l s='January'}

{l s='February'}

{l s='March'}

{l s='April'}

{l s='May'}

{l s='June'}

{l s='July'}

{l s='August'}

{l s='September'}

{l s='October'}

{l s='November'}

{l s='December'}

*}

<select id="months" name="months">

<option value="">-</option>

{foreach from=$months key=k item=month}

<option value="{$k|escape:'htmlall':'UTF-8'}" {if ($sl_month == $k)} selected="selected"{/if}>{l s="$month"} </option>

{/foreach}

</select>

<select id="years" name="years">

<option value="">-</option>

{foreach from=$years item=year}

<option value="{$year|escape:'htmlall':'UTF-8'}" {if ($sl_year == $year)} selected="selected"{/if}>{$year|escape:'htmlall':'UTF-8'}  </option>

{/foreach}

</select>

</p>

 

 

 

 

It also appears in identity.tpl which is the user's profile once they have registered. you may wish to leave that in.

 

 

Don't forget to Foce Compile Smarty in Preferences > Performance.

Edited by oxyweb (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 9 months later...
  • 1 month later...
  • 1 month later...
  • 6 months later...
  • 1 year later...
  • 7 months later...

AN EASY way is to go into localization - contries and in there you can remove date of birth or mr / mrs. also , maybe go to customers - titles and remove mr / mrs and maybe if there are none prestashop will leave out in address section.

I can`t see that this is possible.. The birthday field is not visible for deleting.

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