Log in
Model

QuoteManagement

Magento\Quote\Model\QuoteManagement

What it does

QuoteManagement is the main service class for managing shopping cart (quote) operations in Magento 2.

Developers use this class to create empty carts for guests or customers, assign customers to carts, convert quotes to orders during checkout, and handle the complete order placement process.

It orchestrates the quote-to-order conversion by coordinating data transformation, validation, and triggering necessary events.

Public Methods

  • createEmptyCart()
  • createEmptyCartForCustomer()
  • assignCustomer()
  • placeOrder()
  • getCartForCustomer()
  • submit()
  • _resetState()