Log in
Model

ProductOption

Magento\Catalog\Model\ProductOption

What it does

This class represents product options in the cart or order context, providing a standardized way to handle custom options, configurable attributes, or bundle selections.

Developers use this when working with checkout, orders, or quote items to store and retrieve product option data through extension attributes.

It serves as a data transfer object that can be extended through Magento's extension attributes mechanism.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()