audreysmith Posted May 17, 2016 Share Posted May 17, 2016 Hi I lost a sale because the customer did not want to give his birth date to sign up on the site. Please let me know exactly what file/page this is on in Prestashop so that I can edit the coding Thanks Audrey Link to comment Share on other sites More sharing options...
rocky Posted June 1, 2016 Share Posted June 1, 2016 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 More sharing options...
audreysmith Posted June 1, 2016 Author Share Posted June 1, 2016 Hi Rocky Thanks for the great, detailed explanation. The only problem is that I am using PrestaShop version 1.6.0.14 Will your instructions work for PrestaShop version 1.6.0.14? Thanks again Audrey Link to comment Share on other sites More sharing options...
rocky Posted June 1, 2016 Share Posted June 1, 2016 They should work, but the line numbers and code may be slightly different. Just look for similar-looking code and you should be fine. Link to comment Share on other sites More sharing options...
audreysmith Posted June 1, 2016 Author Share Posted June 1, 2016 Hi Rocky Thanks for your quick response and thanks again for your help I will work on this - hopefully today and let you know how it goes Take Care Audrey Link to comment Share on other sites More sharing options...
audreysmith Posted June 1, 2016 Author Share Posted June 1, 2016 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 More sharing options...
rocky Posted June 2, 2016 Share Posted June 2, 2016 I sent you a private message with my email address. 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