Skip to content

Commit af16149

Browse files
committed
MC-19053: Guest user not being able to checkout after disabling persistent shopping cart
1 parent 9fa9149 commit af16149

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
$this->_eventManager->dispatch('persistent_session_expired');
121121
$this->quoteManager->expire();
122122
$this->_checkoutSession->clearQuote();
123+
$this->_customerSession->setCustomerId(null)->setCustomerGroupId(null);
123124
return;
124125
}
125126

0 commit comments

Comments
 (0)