Skip to content

ProductVariantOptionValue

The ProductVariantOptionValue object represents a variant option value.

classDiagram
  direction LR
  ProductVariantOptionValue --> ProductOption
  ProductVariantOptionValue --> ProductOptionValue
  class ProductOption{
  }
  class ProductOptionValue{
  }
  class ProductVariantOptionValue{
    int id
    ProductOption option
    ProductOptionValue optionValue
  }

Properties

Attribute name Type Description
id int The unique identifier of the variant option value.
option ProductOption The ProductOption object that represents the option of the variant.
optionValue ProductOptionValue The ProductOptionValue object that represents option value of the variant.

Examples

id property

{{ productVariantOptionValue.id }}
1

option property

{{ productVariantOptionValue.option.name }}
Color

optionValue property

{{ productVariantOptionValue.option.name }}: {{ productVariantOptionValue.optionValue.name }}
Color: blue