Overview

Acts as a proxy that allows access to ChosenOption objects which represent values of variant or template options that are associated to a specific Orderline.

It lets you access a specific variant/template option by code, or loop through all variants/template options associated to the Orderline.

Examples

{{ orderline.chosen_variants['foil-color'].variant_value.name }}
{% for option in orderline.chosen_template_options %}
	{{ option.template_option.name }}: {{ option.template_option.value.name }}
{% endfor %}

Properties

chosen_options.size

Returns the number of chosen variants or template options.