Class QuoteManager
Definition at line 11 of file QuoteManager.php.
◆ __construct()
- Parameters
-
\Magento\Persistent\Helper\Session | $persistentSession | |
\Magento\Persistent\Helper\Data | $persistentData | |
\Magento\Checkout\Model\Session | $checkoutSession | |
\Magento\Quote\Api\CartRepositoryInterface | $quoteRepository | |
Definition at line 52 of file QuoteManager.php.
◆ expire()
Expire persistent quote
- Returns
- void
Definition at line 136 of file QuoteManager.php.
138 $quote = $this->checkoutSession->setLoadInactive()->getQuote();
140 $this->checkoutSession->setCustomerData(
null)->clearQuote()->clearStorage();
143 ->setIsPersistent(
false)
144 ->setCustomerId(
null)
145 ->setCustomerGroupId(\
Magento\Customer\Api\Data\GroupInterface::NOT_LOGGED_IN_ID);
◆ isPersistent()
◆ $_setQuotePersistent
$_setQuotePersistent = true |
|
protected |
◆ $checkoutSession
◆ $persistentData
◆ $persistentSession
◆ $quoteRepository
The documentation for this class was generated from the following file: