ltempest Posted August 2, 2012 Share Posted August 2, 2012 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 Link to comment Share on other sites More sharing options...
bellini13 Posted August 2, 2012 Share Posted August 2, 2012 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. Link to comment Share on other sites More sharing options...
vermich Posted June 5, 2013 Share Posted June 5, 2013 (edited) 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 July 3, 2013 by vermich (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted June 5, 2013 Share Posted June 5, 2013 did you add a new column to the ps_customer database table? did you add a public variable $codece to the Customer class? Link to comment Share on other sites More sharing options...
vermich Posted June 6, 2013 Share Posted June 6, 2013 yes and i can already save codece in database. Just can't make it required. Link to comment Share on other sites More sharing options...
vermich Posted June 6, 2013 Share Posted June 6, 2013 After vérification public variable $codece was no longer in customer.php. Maybe gone after modifications. Thanks for your time. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now