Skip to content

Commit f1400e6

Browse files
author
Oleksandr Iegorov
committed
MC-17137: When persistent cart is disabled, logged in users still have a persistent cart session
1 parent 89de5dc commit f1400e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Persistent/Observer/CheckExpirePersistentQuoteObserver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
120120
if ($this->isPersistentQuoteOutdated()) {
121121
$this->_eventManager->dispatch('persistent_session_expired');
122122
$this->quoteManager->expire();
123+
$this->_checkoutSession->clearQuote();
123124
return;
124125
}
125126

0 commit comments

Comments
 (0)