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