CartRepositoryInterface
Magento\Quote\Api\CartRepositoryInterface
What it does
CartRepositoryInterface is the contract for managing shopping cart (quote) data in Magento 2.
Developers use this interface to retrieve, search, save, and delete carts, including getting active carts by customer ID or cart ID.
This is essential for any custom module that needs to interact with customer shopping carts, whether for checkout customizations, cart management features, or administrative operations.
Public Methods
- get()
- getList()
- getForCustomer()
- getActive()
- getActiveForCustomer()
- save()
- delete()