Extras
Display and organise product extras.
Reference: See the Extra object for a complete list of available properties.
Extras are optional add-ons that can be purchased alongside an Experience, such as spa treatments, equipment hire, or airport transfers.
Displaying extras
When displaying extras, keep the following in mind:
- Extras maintain their own stock independently of product variants.
- An extra can be purchased regardless of the stock level of other extras or variants.
- Use
extra.remaining_stockto display the number of units still available for purchase.
Grouping extras
Extras can be organised into Segments. To display grouped extras, use the group_by filter.
{% assign extra_groups = product.extras | group_by: "segment_name" | sort: "segment_name" %}
{% for group in extra_groups %}
<h2>{{ group.name }}</h2>
<ul>
{% for extra in group.items %}
<li>{{ extra.name }}</li>
{% endfor %}
</ul>
{% endfor %}