Log in
Model

Item\Repository

Magento\Quote\Model\Quote\Item\Repository

What it does

This repository class manages shopping cart items in Magento 2, providing methods to retrieve, save, and delete items from a quote (cart).

Developers use this class when building custom cart functionality, such as adding/removing products programmatically, creating custom checkout flows, or integrating with third-party systems that need to manipulate cart contents through the API.

Public Methods

  • getList()
  • save()
  • deleteById()