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

msOptions

Snippet for additional product characteristics display, stored as JSON.

These are size, color and tags by default, but you may add others by product model expansion.

Parameters

ParameterBy defaultDescription
tpltpl.msOptionsFormatting chunk
productProduct identifier. If not indicated, the current document id is used.
optionsList of option for displaying, separated by commas.

Formatting

The snippet counts on the work with Fenom chunk and transfers there only one variable $options with option array.

You may see all available placeholders by empty chunk indication:

modx
<pre>
[[msOptions?
  &options=`color,size`
  &tpl=``
]]
</pre>

Standard chunk is designed to display options in select, for sending to the cart along with the product.