CartTotalManagement
Magento\Quote\Model\Cart\CartTotalManagement
What it does
This class manages the calculation and collection of shopping cart totals in Magento 2.
Developers use it to update cart totals after setting shipping and payment methods, typically during checkout when customers select their preferred shipping carrier and payment option.
It orchestrates the process of applying shipping methods, payment methods, and any additional data before retrieving the updated cart totals.
Public Methods
- collectTotals()