Jump to content

[SOLVED] Remove birthday from Customer Account details


Recommended Posts

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

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

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

  • 3 weeks later...
×
×
  • Create New...