Skip to content

Commit a28847f

Browse files
author
Yauhen_Lyskavets
committed
MAGETWO-62891: New address is not marked as "Default Billing"
- Fix added
1 parent 1cb9235 commit a28847f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Quote/Model/QuoteManagement.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,10 @@ protected function _prepareCustomerQuote($quote)
564564
//Make provided address as default shipping address
565565
$shippingAddress->setIsDefaultShipping(true);
566566
$hasDefaultShipping = true;
567+
if (!$hasDefaultBilling && !$billing->getSaveInAddressBook()) {
568+
$shippingAddress->setIsDefaultBilling(true);
569+
$hasDefaultBilling = true;
570+
}
567571
}
568572
//save here new customer address
569573
$shippingAddress->setCustomerId($quote->getCustomerId());

0 commit comments

Comments
 (0)