Options object
Only available within a task, the
options
object contains all values provided by merchants while configuring the task.Each option value is itself parsed for Liquid. The
options
variable is not available during this pass. :)Use
{{ options }}
or {{ options.foobar }}
in a task's...- script
- online store JavaScript
- order status JavaScript
This object is always a hash. The keys always correspond to lookups (i.e.
{{ options.foobar__required }}
) in the task script (and elsewhere). The values are configured by the user, using a form that's automatically generated by Mechanic.For more on using this object (and implicitly constructing the merchant-facing configuration form), see Task options.
Last modified 2yr ago