Log in
Model

Item

Magento\Quote\Model\Quote\Address\Item

What it does

This class represents an individual product item within a specific quote address (shipping or billing) in Magento 2.

Developers use this when working with cart items that need to be associated with a particular address, such as during checkout when calculating shipping costs or taxes for items being shipped to different addresses.

It imports data from the main quote item and maintains relationships with both the quote address and the original quote item.

Public Methods

  • beforeSave()
  • setAddress()
  • getAddress()
  • getQuote()
  • importQuoteItem()
  • getOptionByCode()