Model
Value
Magento\Catalog\Model\Product\Option\Value
What it does
This class represents a single value option for customizable product options (like dropdown choices, radio buttons, or checkboxes).
Developers use it to manage individual option values, including their titles, prices, SKUs, and sort orders when creating or modifying product custom options that have multiple selectable values.
Public Methods
- addValue()
- getValues()
- setValues()
- unsetValues()
- setOption()
- unsetOption()
- getOption()
- setProduct()
- getProduct()
- saveValues()
- getPrice()
- getRegularPrice()
- getValuesCollection()
- getValuesByOption()
- deleteValue()
- deleteValues()
- duplicate()
- getTitle()
- getSortOrder()
- getPriceType()
- getSku()
- getOptionTypeId()
- setTitle()
- setSortOrder()
- setPrice()
- setPriceType()
- setSku()
- setOptionTypeId()