Log in
Repository

CartTotalRepositoryInterface

Magento\Quote\Api\CartTotalRepositoryInterface

What it does

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

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

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

Public Methods

  • get()