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

Featured templates

ZenCart. How to make “Date of birth” field optional in customer registration form

This tutorial provides an explanation of how to set “Date of birth” field as optional one when creating an account in ZenCart.

ZenCart. How to make “Date of birth” field optional in customer registration form

By default, the “Date of birth” field is required to create an account in ZenCart. In order to make it optional, you should perform the following steps:

  1. Log into your ZenCart admin panel and go to Configuration -> Customer Details:

    Navigate_to_Configuration_Customer_Details

  2. Click on “Date of Birth” field and make sure it is set to true. Otherwise, select “true” and hit Update button:

    Set_Date_of_Birth_field_to_true

  3. Navigate to Configuration -> Minimum Values:

    Navigate_to_Configuration_Minimum_Values

  4. Click on “Date of birth” field, set the number to 0 and hit Update button:

    Set_Date_of_Birth_length_value_to_zero

  5. In order to remove asterisk (*) from “Date of Birth” field, you should navigate to includes/languages folder and open english.php file for editing. You can edit it via your cPanel or FTP:

    Locate_english_php_file

  6. You need to locate the following piece of code (approximately line 208):

    					define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');
    				

    and replace it with this line of code (just remove the asterisk (*)):

    					define('ENTRY_DATE_OF_BIRTH_TEXT', ' (eg. 05/21/1970)');
    				

    Remove_asterisk_from_Date_of_Birth_field

  7. Save your changes and check your website. “Date of birth” field became optional in your account form.

Now you know how to change “Date of birth” field to optional in the account form in Zencart.

Feel free to check the detailed video tutorial below:

ZenCart. How to make “Date of birth” field optional in customer registration form