Documentation

ProductModifierValue extends ResourceModel
in package

Tags

Table of Contents

$adjusters  : ProductModifierValueAdjuster|null
$id  : int
$is_default  : bool
$label  : string
$option_id  : int
$productId  : int|null
$sort_order  : int
$value_data  : ProductModifierValueData|null
Extra data describing the value, based on the type of option or modifier with which the value is associated.
__construct()  : mixed
addPriceAdjuster()  : mixed
jsonSerialize()  : array<string|int, mixed>

Properties

$value_data

Extra data describing the value, based on the type of option or modifier with which the value is associated.

public ProductModifierValueData|null $value_data

The swatch type option can accept an array of colors, with up to three hexidecimal color keys; or an image_url, which is a full image URL path including protocol. The product list type option requires a product_id. The checkbox type option requires a boolean flag, called checked_value, to determine which value is considered to be the checked state. If no data is available, returns null.

Tags

Methods

__construct()

public __construct([stdClass|null $optionObject = null ]) : mixed
Parameters
$optionObject : stdClass|null = null
Tags
Return values
mixed

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

        

Search results