Log in
Model

QuoteRepository

Magento\Quote\Model\QuoteRepository

What it does

This repository class manages shopping cart (quote) data operations in Magento 2.

Developers use it to retrieve, save, and delete quotes by cart ID or customer ID, handle active cart validation, and search carts using criteria.

It provides a standardized API for cart operations while managing internal caching to optimize performance.

Public Methods

  • _resetState()
  • get()
  • getForCustomer()
  • getActive()
  • getActiveForCustomer()
  • save()
  • delete()
  • getList()