È necessario modificare themes/default-bootsrap/authentication.tpl
. Il modulo inizia questa linea:
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="account-creation_form" class="std box">
è possibile rimuovere i campi opzionali (ad esempio, Date of Birth
) senza conseguenze.
Per rimuovere Date of Birth
eliminare queste righe:
<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>
Assicurarsi che durante lo sviluppo Template compilation
è impostato su Force compilation
e Cache
è impostato su No
in PrestaShop back-office ->Advanced Parameters
->Performance
.
** Nota 1 **: il codice è presente due volte a 132-174 e 462-504. È la seconda occorrenza che deve essere rimossa (mi ci è voluto un po 'per capirlo dopo aver eliminato solo la prima occorrenza). ** Nota 2 **: non ho dovuto spegnere la cache, il tasto "* clear cache *" nell'angolo in alto a destra ha fatto il trucco per me. –