Log in
Model

CustomOption

Magento\Catalog\Model\CustomOptions\CustomOption

What it does

This class represents a custom option selected by a customer for a product (like text input, dropdown selections, or file uploads).

Developers use this model when working with product customizations, particularly when retrieving or setting customer-selected option values through the API or when processing orders with customizable products.

Public Methods

  • getOptionId()
  • setOptionId()
  • getOptionValue()
  • setOptionValue()
  • getExtensionAttributes()
  • setExtensionAttributes()