---
title: "product_option"

doc_type: static
doc_category: static
doc_version: v20260901
source_url:
  html: 'https://developer.shopline.com/docs/handlebars/objects/product-option'
  md: 'https://developer.shopline.com/docs/handlebars/objects/product-option.md'
---
# product_option

<div class="code-flex">

<div>
  <ObjectSummary>
    Product options, such as size or color.
  </ObjectSummary>

  #### Properties

  <ObjectProperty
    name="name"
    types={["string"]}
  >
    <ObjectSummary>
      The product option's name.
    </ObjectSummary>
  </ObjectProperty>

  <ObjectProperty
    name="position"
    types={["number"]}
  >
    <ObjectSummary>
      The product option's position within the [product.options_with_values array](https://developer.shopline.com/docs/handlebars/objects/product.md).
    </ObjectSummary>
  </ObjectProperty>

  <ObjectProperty
    name="selected_value"
    types={["string"]}
  >
    <ObjectSummary>
      Currently selected product option.

      Returns `null` if no value is chosen.
    </ObjectSummary>
  </ObjectProperty>

  <ObjectProperty
    name="values"
    types={["array of string"]}
  >
    <ObjectSummary>
      Available values for product options.
    </ObjectSummary>
  </ObjectProperty>
</div>

<div>
  <ObjectAccess
    object="product_option"
    global={false}
    parents={[
      { object:"product.options_with_values", link:"/docsv2/ec20/hdwvcvrgnfcjf4gq/tfzgv1cp3z3wzk1s#options_with_values" },
    ]}
  />
</div>

</div>
