Jump to content

Remove required fields in prestashop 1.4


Recommended Posts

you have to related class such as /classes/Customer.php

remove 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

  • 2 months later...

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

×
×
  • Create New...