7

How can I remove the billing phone number from checkout, or at least make it not required?

I've looked everywhere and can't find any references to the form.

3 Answers 3

5

After facing the same problem, i found a thread on the official git. Dated from August 2015...

And someone posted a proper solution

Incredible complexity for just doing that...

0
12

I'm not sure about previous versions but in Magento 2.2 you can go to

Store > Configuration > CUSTOMERS > Customer Configuration

Then go to the Name and Address Options tab on the right and look for Show Telephone and select your option. (No) (Optional) (Required)

It's set to Required by default.

1
  • Yep, this was added in 2.2.
    – sv3n
    Sep 24, 2018 at 21:11
0

You can make it not required for only billing address by run bellow query to database.

update eav_attribute set is_required=0 where attribute_code='telephone';

5
  • This is to remove the shipping field not the billing field. Sep 7, 2016 at 9:03
  • I'd need to add this to checkout_index_index.xml? Under what node path? Sep 8, 2016 at 15:50
  • You can check my updated answer for telephone number make it not required only for billing address. Sep 9, 2016 at 5:59
  • @William Have you run above query ? Sep 9, 2016 at 12:30
  • This is a false/very partial answer, and obviously, has not been tested. The check for telephone is directly in Magento\Customer\Model\Address\AbstractAddress . Magento\Customer\Model\Address and Magento\Quote\Model\Quote\Address are extending this class. But the the joke, is that if you rewrite that, another injection will not work, (Magento\Quote\Model\Quote\TotalsCollector for example) because waiting for original class. I'm currently looking into it to make it the cleanest way possible... Feb 7, 2017 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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