1

I need to remove the telephone as required in Magento for this I have followed some tutorial and make some changes first I just copy the abstract.php to local folder and comment the line

if (!Zend_Validate::is($this->getTelephone(), 'NotEmpty')) {
    $errors[] = $helper->__('Please enter the telephone number.');
}

after that i have removed all the validation class from billing.php and shipping .php and then in database eav_attribute table make required option to 0 and removed the validation rule from customer_eav _attribute table but after doing all these things i'm getting an alert box by saying

Telephone is required value telephone length must be greater than 1 character enter image description here

2 Answers 2

1

Please follow the steps as given in the below link.

http://swarminglabs.com/magento-making-the-telephone-field-not-required-at-checkout/

Finally, you'll need to clear all of Magento's caches so that your changes take effect. In the Magento admin, got to System -> Cache Management, and clear all caches. Make sure to click the 'Flush Magento Cache' and 'Flush Cache Storage' buttons as well. This will force Magento to take note of your database changes.

1
  • 1
    This link is dead now.
    – feeela
    Aug 14, 2019 at 9:11
0

You'll need to clear all of Magento's caches so that your changes take effect. In the Magento admin, got to System -> Cache Management, and clear all caches. Make sure to click the 'Flush Magento Cache' and 'Flush Cache Storage' buttons as well. This will force Magento to take note of your database changes.

3
  • i have already do this but no changes
    – amith lal
    Jun 7, 2017 at 4:48
  • Please check view source and confirm required validation is removed from billing.php and shipping.php Jun 7, 2017 at 4:55
  • yes it is removed please check the site qnhealth.com
    – amith lal
    Jun 7, 2017 at 5:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.