Log in
Model

ProductOption

Magento\Quote\Model\Quote\ProductOption

What it does

This class represents product options associated with quote items in Magento 2.

Developers use it to store and retrieve custom product configuration data (like custom options, configurable product selections, or bundle choices) when items are added to the shopping cart.

It serves as an extensible container that allows third-party modules to add additional product option data through extension attributes.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()