Log in
Model

QuoteManagement

Magento\Quote\Model\QuoteManagement

What it does

QuoteManagement is the core 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, and most importantly, place orders by converting quotes into sales orders.

It handles the complete order placement workflow including validation, address management, payment processing, and customer data synchronization.

Public Methods

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