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 5ce1235 commit 751a725Copy full SHA for 751a725
app/code/Magento/Checkout/Model/Type/Onepage.php
@@ -491,13 +491,19 @@ public function saveBilling($data, $customerAddressId)
491
)->setCollectShippingRates(
492
true
493
)->collectTotals();
494
- $shipping->save();
+ if ($this->getQuote()->getCheckoutMethod() != self::METHOD_REGISTER) {
495
+ $shipping->save();
496
+ }
497
$this->getCheckout()->setStepData('shipping', 'complete', true);
498
break;
499
}
500
501
- $address->save();
502
+ if ($this->getQuote()->getCheckoutMethod() == self::METHOD_REGISTER) {
503
+ $this->quoteRepository->save($this->getQuote());
504
+ } else {
505
+ $address->save();
506
507
508
$this->getCheckout()->setStepData(
509
'billing',
0 commit comments