Model
Quote
Magento\Quote\Model\ResourceModel\Quote
What it does
This class manages database operations for shopping cart quotes in Magento 2.
Developers use it to load, save, and query quote data - such as loading a customer's active cart, checking if a quote exists, or updating quotes when products or catalog rules change.
It handles critical cart operations like reserving order IDs and managing quote recollection when prices need updating.
Public Methods
- loadByCustomerId()
- loadActive()
- loadByIdWithoutStore()
- getReservedOrderId()
- markQuotesRecollectOnCatalogRules()
- subtractProductFromQuotes()
- substractProductFromQuotes()
- markQuotesRecollect()
- save()
- isExists()