gkisiova Posted July 22, 2013 Share Posted July 22, 2013 I commented out the birth date and radio buttons for Title from the customer registration (authentication.tpl), however I get an error that the date is not valid when trying to register a test account. I guess the birth date is required and validated somewhere. Can anyone point me to the right file to be changed,s o I don;t get the error anymore. Thanks. Galia Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2013 Share Posted July 22, 2013 don't comment it in the .tpl file edit the customer object definition in the customer controller Link to comment Share on other sites More sharing options...
gkisiova Posted July 22, 2013 Author Share Posted July 22, 2013 Thx vekia, Would that be the AdminCustomersController.php ? Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2013 Share Posted July 22, 2013 nope, you have to edit front controller (not admin) the file is in the /classes/ directory Link to comment Share on other sites More sharing options...
nienha Posted December 12, 2013 Share Posted December 12, 2013 don't comment it in the .tpl file edit the customer object definition in the customer controller Can you explain why you mean this is better practice than commenting the .tpl files? I see many people recommend commenting the tpl's so thats why I am asking. Is it a valid question? Link to comment Share on other sites More sharing options...
vekia Posted December 12, 2013 Share Posted December 12, 2013 however I get an error that the date is not valid when trying to register a test account. I guess the birth date is required and validated somewhere. this is because you have to disable this field in controller, because there is a definition of "required" (it mean that field is required so it's necessary to change class) Link to comment Share on other sites More sharing options...
ricky11 Posted December 17, 2013 Share Posted December 17, 2013 (edited) So does he still need to edit the tpl file or just remove the requirement field in the controller, i think that was what he was asking. i think he would need to do both right? why isn't their a option in the BO, that says " Disable/Enable Birthday" . Also what is the point of birthday, i see that in the BO, it stores the age of the customer. And their is no built in module that is included in 1.561 as i see it that utilizes the birthday date? i know their are paid birthday modules. but i cant see the reason for forcing prestashop managers to demand their customers to put in the birthday. Thanks Edited December 17, 2013 by ricky11 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts