
msOptions
Snippet for outputting product options stored as JSON.
By default these are size, color, and tags; you can add more by extending the product model.
Parameters
| Parameter | Default | Description |
|---|---|---|
| tpl | tpl.msOptions | Output chunk |
| product | Product id. If omitted, current resource id is used. | |
| options | Comma-separated list of options to output. |
Output
The snippet expects a Fenom chunk and passes one variable $options (array of option values).
To see all placeholders, use an empty chunk:
modx
<pre>
[[msOptions?
&options=`color,size`
&tpl=``
]]
</pre>The default chunk outputs options as a select for adding to cart with the product.


