CartTotalRepository
Magento\Quote\Model\Cart\CartTotalRepository
What it does
This class retrieves and calculates the complete totals information for a shopping cart, including item prices, taxes, discounts, and shipping costs.
Developers use it to get comprehensive cart total data through the API, which is essential for displaying checkout summaries, order review pages, or when building custom cart interfaces.
It handles both virtual and physical product carts by collecting totals from the appropriate address.
Public Methods
- get()