msOptions

24 september 2018, 07:00

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

Parameter By default Description
tpl tpl.msOptions Formatting chunk
product Product identifier. If not indicated, the current document id is used.
options List 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:

<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.



The next document
msProductOptions