ProductOption
Describes a product option.
Type Definition
type ProductOption {
isForCombinedListing: Boolean
handle: String
sortOrder: Int
title: String
taxonomyAttributeId: Int
taxonomyAttributeHandle: String
taxonomyAttribute: ProductTaxonomyAttribute
values: [ProductOptionValue]
selectedValue: ProductOptionValue
}Fields
| Field | Type | Description |
|---|---|---|
| isForCombinedListing | Boolean | Returns whether this option is for a combined listing. |
| handle | String | Returns the handle. |
| sortOrder | Int | Returns the sort order. |
| title | String | Returns the title. |
| taxonomyAttributeId | Int | Returns the taxonomy attribute ID. |
| taxonomyAttributeHandle | String | Returns the taxonomy attribute handle. |
| taxonomyAttribute | ProductTaxonomyAttribute | Returns the related taxonomy attribute for this option. |
| values | [ProductOptionValue] | Returns the values for this option. |
| selectedValue | ProductOptionValue | Returns the selected value for this option. |
Relationships
ProductOption represents a configurable option available for a product. It maintains relationships with ProductTaxonomyAttribute, which provides standardized attribute information, and ProductOptionValue, which represents the individual values available for selection within this option. This type is used by ProductVariantOption to provide option details for product variants.
Example
{
isForCombinedListing
handle
sortOrder
title
taxonomyAttributeId
taxonomyAttributeHandle
taxonomyAttribute {
id
handle
}
values {
id
title
}
selectedValue {
id
title
}
}Implements
None