Log in
Interface

CartManagementInterface

Magento\Quote\Api\CartManagementInterface

What it does

This interface defines the core shopping cart management operations in Magento 2.

Developers use this to create empty carts for guests or customers, retrieve customer carts, assign customers to carts, and place orders.

It serves as the primary contract for implementing cart lifecycle management and checkout processes throughout the application.

Public Methods

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