I turned on "Checkout as Guest" and allowed one page checkout. I can't seem to get pass the 2nd tab "Billing" as it says "Phone" is a required field. Even after I add in a phone number, it says the same thing.

I have edited:

  • /template/checkout/onepage/billing.phtml
  • /template/checkout/onepage/shipping.phtml
  • /template/persistent/checkout/onepage/billing.phtml
  • /local/Mage/Customer/Model/Address/Abstract.php

and have:

  • removed the required class in the label field
  • removed the php code for validation
  • commented out the Zend_Validate lines for getTelephone
  • updated the db per the link below:


I have flushed magento cache and cache storage too.

Any help would be greatly appreciated.

1 Answer 1


Write schema to update attribute telephone required to false:

 $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
   /** @var \Magento\Eav\Setup\EavSetup $eavSetup */
   $eavSetup = $objectManager->get('\Magento\Eav\Setup\EavSetup');

   $eavSetup->updateAttribute('customer_address', 'telephone', 'is_required', 0);
  • Where do I add that? I don't really know much about Magento and I'm more of a front end person trying to work on this. Thank you!
    – Amy Ling
    Commented Apr 13, 2018 at 17:11
  • The question is about Magento 1, the answer is Magento 2 code. Commented Nov 22, 2018 at 9:50

Your Answer

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

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