Skip to content
  1. Extras
  2. miniShop2
  3. Snippets
  4. msProductOptions

msProductOptions

Unlike msOptions, this snippet simply outputs the list of product options without a selector.

Parameters

ParameterDefaultDescription
tpltpl.msProductOptionsOutput chunk
productProduct id. If omitted, current resource id is used.
onlyOptionsOutput only these options, comma-separated.
ignoreOptionsOptions to exclude from output, comma-separated.
ignoreGroupsGroups whose options to exclude from output, comma-separated.
groupsOutput only options from these groups (group name or category id, comma-separated).
sortGroupsSort order of option groups. Accepts IDs or names. E.g. 22,23,24 or Sizes,Electronics,Other.
sortOptionsSort order of options. Passed as a string, e.g. size,color.
sortOptionValuesSort 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>