In the Magento 2 checkout process, the second screen displays your shipping address again with a checkbox that is checked by default.
How do I make that unchecked by default, so the user can enter their billing info?
billingcheckoutmagento-2.1shipping
In the Magento 2 checkout process, the second screen displays your shipping address again with a checkbox that is checked by default.
How do I make that unchecked by default, so the user can enter their billing info?
Best Answer
Disclaimer: I am an author of an article at the end of this answer. The following solution tested on M2.1.4
Magento best practices way.
Create a file
app/code/Vendor/Module/view/frontend/requirejs-config.js
with the content:vendor/magento/module-checkout/view/frontend/web/js/model/checkout-data-resolver.js
toapp/code/Vendor/Module/view/frontend/web/js/checkout-data-resolver.js
.Edit file
app/code/Vendor/Module/view/frontend/web/js/checkout-data-resolver.js
and comment out code around line 231:Copy file
vendor/magento/module-checkout/view/frontend/web/js/model/shipping-save-processor/default.js
toapp/code/Vendor/Module/view/frontend/web/js/shipping-save-processor/default.js
.In
app/code/Vendor/Module/view/frontend/web/js/shipping-save-processor/default.js
comment out code around line 34:Delete folder pub/static/frontend:
Regenerate static content:
Clear magento cache and you are all set.
Dirty way
Instead of steps 1 through 6 simply edit the file
vendor/magento/module-checkout/view/frontend/web/js/model/checkout-data-resolver.js
and comment out code around line 231 as in step 4 and edit the filevendor/magento/module-checkout/view/frontend/web/js/model/shipping-save-processor/default.js
and comment code code around line 34 as in step 6.Repeat steps 7,8,9.
Originally published as https://www.goivvy.com/blog/magento-2-set-billing-shipping-address-unchecked-default-checkout