Log in
Model

Option

Magento\Quote\Model\Quote\Item\Option

What it does

This class represents customizable options and configuration data for individual items in a shopping cart quote.

Developers use it to store and retrieve product-specific selections like custom text, dropdown choices, or configurable product attributes that customers make when adding items to their cart.

It maintains the relationship between a quote item and its associated product while preserving the customer's configuration choices.

Public Methods

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