Jump to content

[HELP] Disable required address fields ?


Recommended Posts

Hi all.

 

I have a problem with a production website, users cannot enter an address anymore if they do not fill ALL the fields.

It worked before (I mean, required fields where triggered with a "required" html tag only on the field we wanted to be required, in the front address template)

 

Maybe the client did something wront but he doesn't want to admit it and I'm blocked :angry:

 

Important info : The problem occurs both on front and admin (!)

Here's a pic.

 

619949test.png

 

 

For now, I've

  • Checked in the themes/themename/address.tpl, and the field haven't changed since tpl creation (and the bug does not come from here, as it happens in the admin panel too)
  • Created an override class for classes/Address.php, regenerated the class index, and tried to change field definitions :
    'company' =>            array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64),
    into :
    'company' =>            array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => false, 'size' => 64),

 

Zero effect.

 

Is there a conf for this, or something else I've missed ?

 

Have a great day and thanks for reading :)

Edited by fu7zed (see edit history)
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...