Log in
Model

Item

Magento\Quote\Model\Cart\Totals\Item

What it does

This class represents a single item's totals data in a shopping cart quote.

Developers use it to retrieve or set pricing information for cart items, including prices, quantities, taxes, discounts, and row totals in both base and quote currencies.

It's commonly used in checkout flows, cart displays, and when calculating order 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()
  • getName()
  • setName()
  • getExtensionAttributes()
  • setExtensionAttributes()