Log in
Model

CartTotalManagement

Magento\Quote\Model\Cart\CartTotalManagement

What it does

This class manages the collection and calculation of shopping cart totals in Magento 2.

Developers use it when they need to update cart totals after setting shipping methods, payment methods, or processing additional data, typically during checkout.

It coordinates between shipping, payment, and totals repositories to ensure all calculations are up-to-date before returning the final totals.

Public Methods

  • collectTotals()