Skip to content

Commit 74c100d

Browse files
author
Oleksandr Iegorov
committed
MC-18918: With "Clear Persistence on Sign Out" disabled and "Redirect Customer to Account Dashboard after Logging in" enabled, non-empty cart shows Subtotal and Order Total as $0
1 parent 582d278 commit 74c100d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Checkout/Model/Session.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,11 @@ public function loadCustomerQuote()
370370
$this->quoteRepository->save(
371371
$customerQuote->merge($this->getQuote())->collectTotals()
372372
);
373+
$newQuote = $this->quoteRepository->get($customerQuote->getId());
374+
$this->quoteRepository->save(
375+
$newQuote->collectTotals()
376+
);
377+
$customerQuote = $newQuote;
373378
}
374379

375380
$this->setQuoteId($customerQuote->getId());

0 commit comments

Comments
 (0)