Log in
Model

Total

Magento\Quote\Model\Quote\Address\Total

What it does

This class manages and tracks various total amounts (subtotal, tax, shipping, discounts, etc.) for a quote address during checkout calculations.

Developers use it to set, retrieve, and accumulate different price components in both store currency and base currency, with support for storing detailed tax information through the full_info property.

Public Methods

  • setTotalAmount()
  • setBaseTotalAmount()
  • addTotalAmount()
  • addBaseTotalAmount()
  • getTotalAmount()
  • getBaseTotalAmount()
  • getAllTotalAmounts()
  • getAllBaseTotalAmounts()
  • setFullInfo()
  • getFullInfo()