BenC Posted August 5, 2014 Share Posted August 5, 2014 Hi, I am using prestashop 1.6 and am having problems with new customer registration. When a customer tries to register it is asking for address2 and mobile to be filled in as a required field. This does not need to be a requirement however when I check the address.php file it doesnt state that it is required. Can someone help please? Here is my address.php public static $definition = array( 'table' => 'address', 'primary' => 'id_address', 'fields' => array( 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_manufacturer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_supplier' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_country' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_state' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId'), 'alias' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32), 'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64), 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'vat_number' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'address1' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128), 'address2' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'size' => 128), 'postcode' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode', 'size' => 12), 'city' => array('type' => self::TYPE_STRING, 'validate' => 'isCityName', 'required' => true, 'size' => 64), 'other' => array('type' => self::TYPE_STRING, 'validate' => 'isMessage', 'size' => 300), 'phone' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'phone_mobile' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'dni' => array('type' => self::TYPE_STRING, 'validate' => 'isDniLite', 'size' => 16), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), Link to comment Share on other sites More sharing options...
BenC Posted August 5, 2014 Author Share Posted August 5, 2014 Thanks for getting back to me quickly, I tried that but got the same result. Any other ideas? Link to comment Share on other sites More sharing options...
BenC Posted August 6, 2014 Author Share Posted August 6, 2014 Does anyone else know how I can remove the mobile and address 2 fields from being required? Link to comment Share on other sites More sharing options...
abady Posted August 6, 2014 Share Posted August 6, 2014 I am suffering like you.. Link to comment Share on other sites More sharing options...
BenC Posted August 6, 2014 Author Share Posted August 6, 2014 I fixed it. If you go into BO - Customers - Addresses - Scroll to the bottom and select 'set required fields for the is selection' you can remove address2 and mobile 2 Link to comment Share on other sites More sharing options...
abady Posted August 6, 2014 Share Posted August 6, 2014 On 8/6/2014 at 4:34 PM, BenC said: I fixed it. If you go into BO - Customers - Addresses - Scroll to the bottom and select 'set required fields for the is selection' you can remove address2 and mobile great this is my error Company in default language is required I remove all fields but no use.. 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