Total
Magento\Quote\Model\Quote\Address\Total
What it does
This class manages and calculates total amounts for quote addresses in Magento 2, such as subtotals, taxes, shipping, and discounts.
Developers use it during checkout to track different monetary totals in both store currency and base currency, enabling proper calculation of the final order amount.
It's commonly used by total collectors that compute various fees and adjustments during the quote totals collection process.
Public Methods
- setTotalAmount()
- setBaseTotalAmount()
- addTotalAmount()
- addBaseTotalAmount()
- getTotalAmount()
- getBaseTotalAmount()
- getAllTotalAmounts()
- getAllBaseTotalAmounts()
- setFullInfo()
- getFullInfo()