Log in
Repository

CartTotalRepositoryInterface

Magento\Quote\Api\CartTotalRepositoryInterface

What it does

This interface defines the contract for retrieving shopping cart totals in Magento 2.

Developers use this repository to fetch calculated totals (subtotal, grand total, taxes, discounts, shipping) for a specific quote/cart by its ID.

It's commonly used in checkout processes, cart displays, and when you need to show pricing summaries to customers.

Public Methods

  • get()