Log in
Model

ProductOption

Magento\Sales\Model\Order\ProductOption

What it does

This class manages product options for order items in Magento 2.

It processes and adds product-specific configuration data (like custom options, configurable product selections, or bundle choices) to order items based on the product type.

Developers would use this when they need to ensure order items properly store their selected product options for display, reordering, or order management purposes.

Public Methods

  • add()