Modifier
Renders product and modifier selectors, returning a Modifier object.
Renders two select inputs from which a creator can first select a product and then choose a specific modifier from that product.
Returns: A Modifier object.
Properties
| Property | Description | Required |
|---|---|---|
only_from | Restricts the product types available for selection. Accepts an array of experiences and/or accommodations. If omitted, all product types are shown. | No |
Example
---
attributes:
featured_modifier:
type: modifier
label: Featured modifier
default: random
only_from:
- experiences
---{% if featured_modifier %}
<div class="modifier-card">
<h3>{{ featured_modifier.name }}</h3>
<p>{{ featured_modifier.price | money }}</p>
</div>
{% endif %}Setting defaults
The default value accepts random, which selects a random modifier from the creator's published products. Random defaults will respect any only_from restrictions.