Model
Session
Magento\Checkout\Model\Session
What it does
The Checkout Session class manages the shopping cart state and quote data during the checkout process.
Developers use this to retrieve the active quote, handle customer quote operations during login/logout, restore abandoned quotes, and track checkout progress.
It serves as the primary interface for managing quote-related session data throughout the customer's shopping experience.
Public Methods
- _resetState()
- setCustomerData()
- hasQuote()
- setLoadInactive()
- getQuote()
- setQuoteId()
- getQuoteId()
- loadCustomerQuote()
- setStepData()
- getStepData()
- clearQuote()
- clearStorage()
- clearHelperData()
- resetCheckout()
- replaceQuote()
- getLastRealOrder()
- restoreQuote()