Variant
Renders two select inputs from which a Creator can select a product and then a variant.
Returns a Variant object.
- Accepts a
defaultofrandomwhich will select a random variant from the Creator’s published products. - Has an optional
only_fromlist, which supports restricting the product types. The allowed values areexperiencesandaccommodations. Ifonly_fromis missing, it defaults to all types.randomdefaults will comply with these restrictions.
syntax
---
my_variable:
type: variant
default: random
only_from:
- experiences
- accommodations
---
{{ my_variable.name }}