{"id":55600,"date":"2015-10-13T02:56:28","date_gmt":"2015-10-13T06:56:28","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=55600"},"modified":"2015-11-02T09:11:05","modified_gmt":"2015-11-02T14:11:05","slug":"zencart-how-to-make-date-of-birth-field-optional-in-creating-an-account-form","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/zencart-how-to-make-date-of-birth-field-optional-in-creating-an-account-form.html","title":{"rendered":"ZenCart. How to make &#8220;Date of birth&#8221; field optional in customer registration form"},"content":{"rendered":"<p>This tutorial provides an explanation of how to set <strong>&#8220;Date of birth&#8221;<\/strong> field as optional one when creating an account in ZenCart.<\/p>\r\n\t\t<a href=\"http:\/\/www.youtube.com\/watch?v=sCk06g1GMwM?width=1280&amp;height=720\" rel=\"prettyPhoto\">ZenCart. How to make &#8220;Date of birth&#8221; field optional in customer registration form<\/a>\r\n\r\n\t\t<p>By default, the <strong>&#8220;Date of birth&#8221;<\/strong> field is required to create an account in ZenCart. In order to make it optional, you should perform the following steps:<\/p>\r\n\r\n\t\t<ol>\r\n\t\t\t<li>\r\n\t\t\t\t<p>Log into your ZenCart admin panel and go to <strong>Configuration -> Customer Details<\/strong>:<\/p>\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Customer_Details.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Customer_Details-300x144.jpg\" alt=\"Navigate_to_Configuration_Customer_Details\" width=\"300\" height=\"144\" class=\"aligncenter size-medium wp-image-55601\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Customer_Details-300x144.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Customer_Details-150x72.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Customer_Details-1024x493.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Customer_Details.jpg 1261w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t\r\n\r\n\t\t\t<\/li>\r\n\t\t\t<li>\r\n\t\t\t\t<p>Click on <strong>&#8220;Date of Birth&#8221;<\/strong> field and make sure it is set to <strong>true<\/strong>. Otherwise, select <strong>&#8220;true&#8221;<\/strong> and hit <strong>Update<\/strong> button:<\/p>\r\n\t\t\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_field_to_true.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_field_to_true-300x141.jpg\" alt=\"Set_Date_of_Birth_field_to_true\" width=\"300\" height=\"141\" class=\"aligncenter size-medium wp-image-55602\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_field_to_true-300x141.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_field_to_true-150x70.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_field_to_true-1024x480.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_field_to_true.jpg 1261w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n\t\t\t<li>\r\n\t\t\t\t<p>Navigate to <strong>Configuration -> Minimum Values<\/strong>:<\/p>\r\n\t\t\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Minimum_Values.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Minimum_Values-300x145.jpg\" alt=\"Navigate_to_Configuration_Minimum_Values\" width=\"300\" height=\"145\" class=\"aligncenter size-medium wp-image-55603\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Minimum_Values-300x145.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Minimum_Values-150x73.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Minimum_Values-1024x495.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Navigate_to_Configuration_Minimum_Values.jpg 1263w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n\t\t\t<li>\r\n\t\t\t\t<p>Click on <strong>&#8220;Date of birth&#8221;<\/strong> field, set the number to <strong>0<\/strong> and hit <strong>Update<\/strong> button:<\/p>\r\n\t\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_length_value_to_zero.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_length_value_to_zero-300x134.jpg\" alt=\"Set_Date_of_Birth_length_value_to_zero\" width=\"300\" height=\"134\" class=\"aligncenter size-medium wp-image-55604\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_length_value_to_zero-300x134.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_length_value_to_zero-150x67.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_length_value_to_zero-1024x459.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Set_Date_of_Birth_length_value_to_zero.jpg 1263w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n\t\t\t<li>\r\n\t\t\t\t<p>In order to remove <strong>asterisk (*)<\/strong> from <strong>&#8220;Date of Birth&#8221;<\/strong> field, you should navigate to <strong>includes\/languages<\/strong> folder and open <strong>english.php<\/strong> file for editing. You can edit it via your cPanel or FTP:\r\n\t\t\t\t<\/p>\r\n\t\t\t\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/Locate_english_php_file.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/Locate_english_php_file-300x168.jpg\" alt=\"Locate_english_php_file\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-55605\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Locate_english_php_file-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Locate_english_php_file-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Locate_english_php_file-1024x572.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Locate_english_php_file.jpg 1281w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n\t\t\t<li>\r\n\t\t\t\t<p>You need to locate the following piece of code (approximately line 208):<\/p>\r\n\t\t\t\t<pre class=\"brush:php\">\r\n\t\t\t\t\tdefine('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05\/21\/1970)');\r\n\t\t\t\t<\/pre>\r\n\t\t\t\t\r\n\t\t\t\t<p>and replace it with this line of code (just remove the <strong>asterisk (*)<\/strong>):<\/p>\r\n\t\t\t\t<pre class=\"brush:php\">\r\n\t\t\t\t\tdefine('ENTRY_DATE_OF_BIRTH_TEXT', ' (eg. 05\/21\/1970)');\r\n\t\t\t\t<\/pre>\r\n\t\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/Remove_asterisk_from_Date_of_Birth_field.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/Remove_asterisk_from_Date_of_Birth_field-300x160.jpg\" alt=\"Remove_asterisk_from_Date_of_Birth_field\" width=\"300\" height=\"160\" class=\"aligncenter size-medium wp-image-55606\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Remove_asterisk_from_Date_of_Birth_field-300x160.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Remove_asterisk_from_Date_of_Birth_field-150x80.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Remove_asterisk_from_Date_of_Birth_field-1024x547.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/Remove_asterisk_from_Date_of_Birth_field.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n\t\t\t<li>\r\n\t\t\t\t<p>Save your changes and check your website. <strong>&#8220;Date of birth&#8221;<\/strong> field became optional in your account form.<\/p>\r\n\t\t\t<\/li>\r\n\t\t<\/ol>\r\n\t\t\r\n\t\t<p>Now you know how to change <strong>&#8220;Date of birth&#8221;<\/strong> field to optional in the account form in Zencart.<\/p>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=sCk06g1GMwM?width=1280&amp;height=720\" rel=\"prettyPhoto\">ZenCart. How to make &#8220;Date of birth&#8221; field optional in customer registration form<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial provides an explanation of how to set <strong>&#8220;Date of birth&#8221;<\/strong> field as optional one when creating an account in ZenCart.<\/p>\n","protected":false},"author":95,"featured_media":55610,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[734],"tags":[1023,2074,640,2075,2408],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/55600"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/95"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=55600"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/55600\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/55610"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=55600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=55600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=55600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}