Skip to content

Remove My billing and shipping address are the same checkbox in Magento2

I want to hide the checkbox and message at the checkout that shows the message :

My billing and shipping addresse are the same

Without effecting the checkout procees. I wanto to remove it.

I tried to remove this div:

   <div class="billing-address-same-as-shipping-block field choice" data-bind="visible: canUseShippingAddress()">
        <input type="checkbox" name="billing-address-same-as-shipping"
               data-bind="checked: isAddressSameAsShipping, click: useShippingAddress, attr: {id: 'billing-address-same-as-shipping-' + getCode($parent)}"/>
        <label data-bind="attr: {for: 'billing-address-same-as-shipping-' + getCode($parent)}"><span
                data-bind="i18n: 'My billing and shipping address are the same'"></span></label>
    </div>

in the vendor/magento/module-checkout/view/frontend/web/template/billing-address.html

It hides the message and checkbox on pacling the order it shows me the error
as :

enter image description here