Log in
Model

Option

Magento\Quote\Model\Quote\Item\Option

What it does

This class represents a single option attached to a quote item in the shopping cart, such as custom product configurations, text personalizations, or selected bundle/configurable product choices.

Developers use this model to store and retrieve additional data about how a customer has customized a product before checkout, linking the option to both the quote item and the product it belongs to.

Public Methods

  • setItem()
  • getItem()
  • setProduct()
  • getProduct()
  • getValue()
  • beforeSave()