Modifier selection session
object
This drop is available on the post-checkout selection page as item
. It combines the data for a particular line item with the guest information for the customer currently logged in.
Attributes
item.id
string
The id of the line item.
item.title
string
The title of the line item.
item.start_on
timestamp
The start date of the line item.
item.end_on
timestamp
The end date of the line item.
item.guest_id
string
The guest id.
item.description
string
The title concatenated with the guest’s name, if there is a guest.
item.guest_name
string
The name of the guest (or guest [some number] if no name is set yet).
item.product
The line item’s parent product or the product itself.
item.variant
The variant attached to the line item.
item.selection_filters
array of Selection filters
Represents a group of filter options for this line item’s variant to be used in the post-checkout selections UI on sites.
Example usage:
{% for filter in item.selection_filters %}
<h3>{{ filter.name }}</h3>
<ul>
{% for option in filter.options %}
<li {{ option.attributes }}>{{ option.name }}</li>
{% endfor %}
</ul>
{% endfor %}