We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cb9235 commit a28847fCopy full SHA for a28847f
app/code/Magento/Quote/Model/QuoteManagement.php
@@ -564,6 +564,10 @@ protected function _prepareCustomerQuote($quote)
564
//Make provided address as default shipping address
565
$shippingAddress->setIsDefaultShipping(true);
566
$hasDefaultShipping = true;
567
+ if (!$hasDefaultBilling && !$billing->getSaveInAddressBook()) {
568
+ $shippingAddress->setIsDefaultBilling(true);
569
+ $hasDefaultBilling = true;
570
+ }
571
}
572
//save here new customer address
573
$shippingAddress->setCustomerId($quote->getCustomerId());
0 commit comments