Biobi Posted June 24, 2011 Share Posted June 24, 2011 HI,I would like to delete some required fields in the different authentification forms. I have 1.4.3 prestashop version.Thanks ! Link to comment Share on other sites More sharing options...
shokinro Posted June 25, 2011 Share Posted June 25, 2011 You can change theme file only by pre-populating the fieldin your page theme file (tpl), find the your field, set style="display:none;" at the filed tagthen pre-populate it will a default value 1 Link to comment Share on other sites More sharing options...
Biobi Posted June 25, 2011 Author Share Posted June 25, 2011 Thanks for your answer but if I want to delete some fields how can I do this ?Regards, Link to comment Share on other sites More sharing options...
shokinro Posted June 25, 2011 Share Posted June 25, 2011 you have to related class such as /classes/Customer.phpremove the fields from the list of required fields of the class protected $fieldsRequired = array('lastname', 'passwd', 'firstname', 'email'); and also remove it from tpl file Link to comment Share on other sites More sharing options...
Biobi Posted June 26, 2011 Author Share Posted June 26, 2011 I don't find where to delete the required newsletter checkbox. Link to comment Share on other sites More sharing options...
shokinro Posted June 26, 2011 Share Posted June 26, 2011 I don't think "newsletter checkbox" is required field. It is not a required field. user does not has to select. Link to comment Share on other sites More sharing options...
Biobi Posted June 26, 2011 Author Share Posted June 26, 2011 I have always the error with the "newsletter is required" Link to comment Share on other sites More sharing options...
shokinro Posted June 26, 2011 Share Posted June 26, 2011 by default it it not included in the 1.4.3.I guess it is introduced from some of news letter related module?I see a few news letter related module in 1.4.3, have you installed any of those modules? Link to comment Share on other sites More sharing options...
Biobi Posted June 26, 2011 Author Share Posted June 26, 2011 yes I have but after deleting it, the checkbox disapeared but not the required message.Thanks for your help ! Link to comment Share on other sites More sharing options...
Azurafiles Posted September 12, 2011 Share Posted September 12, 2011 In Address.php found in classes, I needed to remove the required term lastname from the address part of the signup, because I only wanted to request this once. This might be the same for newsletter or whatever, but here are the steps I made with lastname, which should be the same. Don't touch the protected $fieldsRequired = array fields, but rather protected $fieldsValidate = array fields. If you touch the first one, no last name will be viewable in backoffice, but touch the last one and it will, but only once, which is enough. Link to comment Share on other sites More sharing options...
Azurafiles Posted September 12, 2011 Share Posted September 12, 2011 always make sure to have a backup, because in my case if I did not, I would have destroyed the website :/ Link to comment Share on other sites More sharing options...
Recommended Posts