Jump to content

remove birthdate from sign up


audreysmith

Recommended Posts

  • 2 weeks later...

Hi Audrey,

 

The date of birth is optional, so the customer could have just clicked Register without filling it in, but I guess they didn't realise that. Assuming you're using PrestaShop v1.6.1.5 with the default theme, you can remove the birthday by editing themes/default-bootstrap/authentication.tpl and adding {if false} before and {/if} after lines 132-174:

			<div class="form-group">
				<label>{l s='Date of Birth'}</label>
				<div class="row">
					<div class="col-xs-4">
						<select id="days" name="days" class="form-control">
							<option value="">-</option>
							{foreach from=$days item=day}
								<option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}  </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'}
						*}
					</div>
					<div class="col-xs-4">
						<select id="months" name="months" class="form-control">
							<option value="">-</option>
							{foreach from=$months key=k item=month}
								<option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>
							{/foreach}
						</select>
					</div>
					<div class="col-xs-4">
						<select id="years" name="years" class="form-control">
							<option value="">-</option>
							{foreach from=$years item=year}
								<option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}  </option>
							{/foreach}
						</select>
					</div>
				</div>
			</div>

You should do the same to lines 132-174 of authentication.tpl, lines 87-131 of identity.tpl, lines 87-129 of order-opc-new-account-advanced.tpl and lines 88-130 of order-opc-new-account.tpl.

Link to comment
Share on other sites

Hi Rocky

 

Unfortunately it did not work.

 

The changes made the register and login form fields completely disappear.

 

I changed for authentication.tpl, identity.tpl and lines  order-opc-new-account.tpl

 

There is no file called

 

order-opc-new-account-advanced.tpl

 

I put the .tpl pages back the way they were and all is working again.

 

I tried to paste in the files to this post-but-they were too large.
Is there an email address that I can email them to you I will email them to you or ?

 

Thanks

 

Audrey

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