Jump to content

Remove Validation on Company Name in address during checkout


bobthebob01

Recommended Posts

Hi,

 

I am trying to remove the validation on the company name showing in the "address" block during check out. ( I guess that validation applies every where the customer company name is asked).

 

I've found this post: https://www.prestashop.com/forums/topic/335815-solved-how-to-remove-integer-validation-for-customer-addresses-in-first-name-and-last-name/

 

I tried to adapt to the company name field in the following 2 files:

/classes/Address.php

and

/classes/Customer.php

 

I tried 'isMessage', 'isString' and 'isAnything' but no success.

 

Although it's always good to have validation in place, I actually not see why such validation is done on a company name.

Maybe symbols can not be registered in a company name, but I would be surprised to hear you can not have numbers in a company name.

 

Does anybody know how to stop that validation?

 

Thank you in advance.

 

Link to comment
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
×
×
  • Create New...