From 7da540532e3990507509ed2e1f302529eaaf347a Mon Sep 17 00:00:00 2001 From: Milan Osztromok Date: Mon, 3 Jul 2017 16:29:37 +0200 Subject: [PATCH] add missing criterion (canUseForBilling) Use current shipping address as billing address only if address is marked as canUseForBilling --- .../frontend/web/js/model/shipping-save-processor/default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Checkout/view/frontend/web/js/model/shipping-save-processor/default.js b/app/code/Magento/Checkout/view/frontend/web/js/model/shipping-save-processor/default.js index b2a273513181d..a477856235768 100644 --- a/app/code/Magento/Checkout/view/frontend/web/js/model/shipping-save-processor/default.js +++ b/app/code/Magento/Checkout/view/frontend/web/js/model/shipping-save-processor/default.js @@ -33,7 +33,7 @@ define([ saveShippingInformation: function () { var payload; - if (!quote.billingAddress()) { + if (!quote.billingAddress() && quote.shippingAddress().canUseForBilling()) { selectBillingAddressAction(quote.shippingAddress()); }