Jump to content

County / State dropdown field not required


ltempest
 Share

Recommended Posts

When a user registers on the website and they select say United Kingdom or USA in the country filed, a dynamic dropdown option appears asking them to select a county or state. This dropdwon field is a required field and you cannot complete registration without selecting an option.

 

How do I make this a non required field? Which files do I need to amend?

 

Thanks

 

Lee

Share this post


Link to post
Share on other sites

what version of prestashop are you using, and are you using a custom theme?

 

typically providing a state is a setting in the Country, and the theme adheres to what the setting is. However it could be that your theme is coded to ignore the setting, or you have an older version of prestashop.

Share this post


Link to post
Share on other sites

  • 10 months later...

Hi,

 

I'm interesting in a solution to make a new required field in customer registration.

 

I'm on prestashop 1.5.3. I have made a new field "codece" and put this in customer.php :

 

'codece' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true ),

 

The field in now required but the validation show that :

 

Notice: Undefined property: Customer::$codece

Edited by vermich (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