The product_option object

The product_option object is available for each option in a product options array. The product options array is accessible via product.options_with_values.

The product_option object has the following attributes:

product_option.name

Returns the product option's name.

product_option.position

Returns the product option's position in the product options array.

product_option.selected_value

Returns the currently selected value for this product option.

product_option.values

Returns an array of possible values for this product option.