cancel
Showing results for 
Search instead for 
Did you mean: 

How to set phone as a NOT required field in Magento 2 checkout?

How to set phone as a NOT required field in Magento 2 checkout?

Hi,

the first thing i did on all my magento 1.9 shops was setting the phone to not required in onepage checkout (all my customers wanted this).

I did never undestand why there is no possibility out of the box for this (yes/no) in configuration...

Now, in magento 2 i searched for hours. I found XML files, template files, i searched the database but i cannot find, where the phone field is set to required :-(

I found it in the /vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml - but there is no flag for required or not...

The template hints just show me a onepage.phtml with javascript.

I found information how to add new fields:

http://www.ibnab.com/en/blog/magento-2/magento-2-add-custom-eav-attribute-to-category-or-customer

 

But this didn't help me.

I dont want to deactivate the whole field - i want the field - but it just should not be required...

Has anybody an idea - a solution, or just a hint?

Thank you.

2 REPLIES 2

Re: How to set phone as a NOT required field in Magento 2 checkout?

 

Did you find a solution?

Re: How to set phone as a NOT required field in Magento 2 checkout?

This needs to be an option in the back-end admin.

 

People just don't give out their phone number so easily.