Skip to content

Commit e533ff3

Browse files
author
Olexii Korshenko
committed
MAGETWO-39503: "Same as shipping" check box checked by default
1 parent e23498d commit e533ff3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Checkout/view/frontend/web/js/action/select-shipping-address.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ define(
1414
});
1515
return function(shippingAddress) {
1616
quote.shippingAddress(shippingAddress);
17+
//set billing address same as shipping by default
18+
if (shippingAddress.canUseForBilling()) {
19+
quote.billingAddress(shippingAddress);
20+
}
1721
};
1822
}
1923
);

0 commit comments

Comments
 (0)