seog Posted October 29, 2012 Share Posted October 29, 2012 Hi there, I need require to customers choose his gender on the registration page. In PS 1.4 is easy add this mod but in PS 1.5 is too hard for me. The files that I believe are necessary to modify code are: /controllers/front/AuthController.php and /controllers/front/AddressController.php waiting for your help best regards Link to comment Share on other sites More sharing options...
seog Posted October 30, 2012 Author Share Posted October 30, 2012 Anyone knows how to do? Link to comment Share on other sites More sharing options...
Ryan_Glass Posted August 5, 2013 Share Posted August 5, 2013 I'd like to know this too please for Date Of Birth in Prestashop 1.5 Link to comment Share on other sites More sharing options...
vekia Posted August 5, 2013 Share Posted August 5, 2013 classes/customer.php change the: 'birthday' => array('type' => self::TYPE_DATE, 'validate' => 'isBirthDate'), to: 'birthday' => array('type' => self::TYPE_DATE, 'validate' => 'isBirthDate', 'required' => true), Link to comment Share on other sites More sharing options...
Ryan_Glass Posted August 5, 2013 Share Posted August 5, 2013 Great - thanks for the quick reply. This worked to make the field compulsory - is there a way to have the red asterix appear beside Date of Birth like in the other compulsory fields. Thanks Link to comment Share on other sites More sharing options...
Ryan_Glass Posted August 5, 2013 Share Posted August 5, 2013 I solved this by going to the authentication.tpl file (themes>default>authentication.tpl) and adding an asterix beside Date of Birth in the line 793 Link to comment Share on other sites More sharing options...
vekia Posted August 5, 2013 Share Posted August 5, 2013 thanks for information and for your solution, im convinced that it will be helpful for other forum members regards Link to comment Share on other sites More sharing options...
Recommended Posts