skylark167 Posted August 21, 2013 Share Posted August 21, 2013 Hi I can think of very few shops that need to hold on to details of customer birthdays - I for one don't think I've ever come across one. So, in the 1.5 installation of Prestashop, how does this functionality get removed without causing errors. Please tell me in which pages I need to edit, and indicate whether its one line, or several. I would have thought there might be an easy way from BO. Many thanks Link to comment Share on other sites More sharing options...
vekia Posted August 21, 2013 Share Posted August 21, 2013 themes/default/authentication.tpl remove (or comment) the code: <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}" {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'} *} <select id="months" name="months"> <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> <select id="years" name="years"> <option value="">-</option> {foreach from=$years item=year} <option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year} </option> {/foreach} </select> </p> Link to comment Share on other sites More sharing options...
skylark167 Posted August 21, 2013 Author Share Posted August 21, 2013 Hi - authentication.tpl only has 2 lines in it. I guess its changed with 1.5? IE require(dirname(__FILE__).'/config/config.inc.php'); Tools::displayFileAsDeprecated(); Tools::redirect('index.php?controller=authentication'.($_REQUEST ? '&'.http_build_query($_REQUEST, '', '&') : ''), __PS_BASE_URI__, null, 'HTTP/1.1 301 Moved Permanently'); Anybody else have any ideas? Thanks Link to comment Share on other sites More sharing options...
skylark167 Posted August 21, 2013 Author Share Posted August 21, 2013 OK - so I did this; #new_account_form p.select { display: none; } in global.css as I could not find anything else to alter without causing errors. It works, so I guess that'll do. Thanks Link to comment Share on other sites More sharing options...
vekia Posted August 22, 2013 Share Posted August 22, 2013 thanks for your solution im going to mark this topic as [solved] best regards btw. it's really weird that your auth template file has got only two lines :| Link to comment Share on other sites More sharing options...
All22 Posted September 11, 2013 Share Posted September 11, 2013 Vekia, thank you for YOUR solution. Skylark - display none is not good solution. Btw, there is a difference between *.tpl and *.php files... Link to comment Share on other sites More sharing options...
Recommended Posts