
msProductOptions
Unlike msOptions, this snippet simply outputs the list of product options without a selector.
Parameters
| Parameter | Default | Description |
|---|---|---|
| tpl | tpl.msProductOptions | Output chunk |
| product | Product id. If omitted, current resource id is used. | |
| onlyOptions | Output only these options, comma-separated. | |
| ignoreOptions | Options to exclude from output, comma-separated. | |
| ignoreGroups | Groups whose options to exclude from output, comma-separated. | |
| groups | Output only options from these groups (group name or category id, comma-separated). | |
| sortGroups | Sort order of option groups. Accepts IDs or names. E.g. 22,23,24 or Sizes,Electronics,Other. | |
| sortOptions | Sort order of options. Passed as a string, e.g. size,color. | |
| sortOptionValues | Sort order of option values. E.g. size:SORT_DESC:SORT_NUMERIC:100,color:SORT_ASC:SORT_STRING |
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>[[msProductOptions?tpl=``]]</pre>

