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:

Returns the product option's name.


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


Returns the currently selected value for this product option.


Returns an array of possible values for this product option.