Model
Item
Magento\Quote\Model\Cart\Totals\Item
What it does
This class represents a single cart item's totals information, including prices, quantities, taxes, and discounts in both base and quote currencies.
Developers use this class to retrieve or display detailed pricing breakdowns for individual items in a shopping cart, such as when rendering cart totals on the frontend or calculating item-level pricing through the API.
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()