Can we remove the checkbox and label called "My billing and shipping address are the same" during checkout in Magento2?
I don't want to allow customers to enter billing address there. All I need is to hide the checkbox with the label, can it be done? Please anyone help me.
Best Answer
Overwrite:
vendor/magento/module-checkout/view/frontend/web/template/billing-address.html
in your custom theme:
app/design/frontend/<customTheme>/<customTheme>/Magento_Checkout/web/template/billing-address.html
And remove:
So the overwritten file should be like this:
UPDATE:
In later versions of Magento, keeping line
prior to
is important to retain the functionality.