Log in
Interface

TotalsItemInterface

Magento\Quote\Api\Data\TotalsItemInterface

What it does

This interface defines the contract for shopping cart item totals data in Magento 2.

Developers use it when working with quote/cart item calculations, including prices, taxes, discounts, and WEEE taxes in both base and quote currencies.

It's commonly used in checkout processes, cart displays, and when implementing custom pricing or tax logic that needs to access or manipulate individual item totals.

Public Methods

  • setItemId()
  • getItemId()
  • getPrice()
  • setPrice()
  • getBasePrice()
  • setBasePrice()
  • getQty()
  • setQty()
  • getRowTotal()
  • setRowTotal()
  • getBaseRowTotal()
  • setBaseRowTotal()
  • getRowTotalWithDiscount()
  • setRowTotalWithDiscount()
  • getTaxAmount()
  • setTaxAmount()
  • getBaseTaxAmount()
  • setBaseTaxAmount()
  • getTaxPercent()
  • setTaxPercent()
  • getDiscountAmount()
  • setDiscountAmount()
  • getBaseDiscountAmount()
  • setBaseDiscountAmount()
  • getDiscountPercent()
  • setDiscountPercent()
  • getPriceInclTax()
  • setPriceInclTax()
  • getBasePriceInclTax()
  • setBasePriceInclTax()
  • getRowTotalInclTax()
  • setRowTotalInclTax()
  • getBaseRowTotalInclTax()
  • setBaseRowTotalInclTax()
  • getOptions()
  • setOptions()
  • getWeeeTaxAppliedAmount()
  • setWeeeTaxAppliedAmount()
  • getWeeeTaxApplied()
  • setWeeeTaxApplied()
  • getExtensionAttributes()
  • getName()
  • setName()
  • setExtensionAttributes()