[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

PrestaShop 1.6.x. How to remove Date of Birth field

This tutorial will show you how to remove Date of Birth field in PrestaShop 1.6.x.

PrestaShop 1.6.x. How to remove Date of Birth field

  1. Connect to your FTP or access your site files via Cpanel and navigate to themes/themeXXXX/, where themeXXXX is your theme name. In this directory locate authentication.tpl file. You can edit it in cPanel or download it and edit using any text editor, such as Sublime or Notepad++.

  2. In authentication.tpl file locate the following code (around line 112-154):

    <div class="form-group date-select">
      <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>
      

    And wrap it in <– all code goes here –>. It will comment out the code. You can also remove the code:

    PrestaShop 1.6.x. How to remove Date Of Birth field-1

  3. You need to repeat the same procedure with the same code in authentication.tpl on lines 446-488, in identity.tpl (around lines 64-109) and in order-opc-new-account.tpl (around lines 100-142). Save all files on your server. Now date of birth field will be removed.

Now you know how to remove Date of Birth field in PrestaShop 1.6.x.

Feel free to check the detailed video tutorial below:

PrestaShop 1.6.x. How to remove Date of Birth field