arslantabassum Posted June 6, 2014 Share Posted June 6, 2014 (edited) I Want to remove integer validation for customer addresses in fields first name and last name...I found this one InControllers->admin->adminaddressescontroller.php $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('First Name'), 'name' => 'firstname', 'required' => true, 'col' => '4', 'hint' => $this->l('Invalid characters:').' 0-9!<>,;?=+()@#"�{}_$%:', 'default_value' => $default_value, ); Change this line.... 'hint' => $this->l('Invalid characters:').' !<>,;?=+()@#"�{}_$%:',but did'nt work......Thanks in advance...... Edited June 11, 2014 by arslantabassum (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 7, 2014 Share Posted June 7, 2014 you have to change object definition in customer class classes/Customer.php 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), change 'validate' to isAnything 2 Link to comment Share on other sites More sharing options...
arslantabassum Posted June 11, 2014 Author Share Posted June 11, 2014 you have to change object definition in customer class classes/Customer.php 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), change 'validate' to isAnything Thanks Vekia , It works great for me.... i have changed object definition in Address class similar to customer. classes/Address.php 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'required' => true, 'size' => 32), Now integer validation is No More...... 1 Link to comment Share on other sites More sharing options...
Recommended Posts