cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 checkout - set shipping address same as billing address

Magento 2 checkout - set shipping address same as billing address

Hello everyone. I am currently working on mangento EE project which required billing address to be put above shipping address. I have done this by a plugin and using the LayoutProcessor.php where I get the billing address form which works fine in the shipping step. So one thing done. Next thing that I need to do but can't really grasp where to start is I need to make that little checkbox in the billing form that will make shipping form address data same as billing so as we have on payment step This address is also my billing address I would need the same thing but vice versa. 

I understand all the logic is being handled in shipping.js and billing-address.js for the previous one so my question is does anybody have any smart idea how I would go about it to have a checkbox on billing address and on check for it to save values from billing address form to shipping address form. Thanking you in advance. Truly any help is appreciated.