Jump to content

Remove the mandatory tag, "address1"


Alonso perez

Recommended Posts

iIn prestashop 1.7.6.5 it was easy, you only modified the file "classes/address.php", only 'required' => true was removed

Now in version 1.7.8.7, it doesn't work anymore. In the differences I observe that the address.php file no longer comes with an array

Example
 

Quote

In 1.7.6.5
'address1' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128),

Quote

In 1.7.8.7
'address1' => ['type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128]

 

If anyone knows what other file to modify, thank you for it

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...