Jump to content

wajdikick
 Share

Recommended Posts

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

Edited by wajdikick (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More