I am trying to remove rules validation for customer's Lastname field..
I have succeed to do it in the front page for customer registration by editing Classes/Customer.php file like this:
'lastname' =>array('type' => self::TYPE_STRING, 'validate' => 'isCustomerName', 'required' => true, 'size' => 32),
to :
'lastname' =>array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'required' => true, 'size' => 32),
I have simply used isAnything in validation.
But that's not working in the Backoffice, so i can't edit customers from BO.
Can't find what file to change exactly.
I am using Prestashop V1.7.6.8.
Need help please. Thanks