Skip to Content

Product Option

The product_option object describes a selectable option for a product, such as size or color.

{%- comment -%} List product options {%- endcomment -%} {% for option in product.options %} <option handle="{{ option.handle }}"> {% for value in option.values %}{{ value.handle }} {% endfor %} </option> {% endfor %}

handle

Returns the handle.

sort_order

Returns the sort order.

title

Returns the title.

taxonomy_attribute_id

Returns the taxonomy attribute ID.

taxonomy_attribute_handle

Returns the taxonomy attribute handle.

taxonomy_attribute

Returns the related taxonomy attribute for this option.

values

Returns the values for this option.

selected_value

Returns the selected value for this option.