O
O
Oleg2017-10-27 16:52:54
MODX
Oleg, 2017-10-27 16:52:54

Fenom, minishop2: how to display the value of the product feature $option $name $value?

In the minishop2 product card, I display all the options using the msOptions snippet:


The value of one option needed to be displayed separately from all, approximately as in this question:
How to display the vendor name using the Fenom template engine in miniShop2?
Only here the manufacturer is displayed, and I need a product option.
I'm trying like this:
<div>{$_modx->resource.OPTION}"></div>
It displays Array for me, because the option contains several values:
<div>Array</div>
Tell me, how can I display this value through Fenom?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex-1917, 2017-10-27
@alex-1917

I understood you correctly, is this?

Размерный ряд: 
  {foreach $size as $value index=$index}
    <span>{$size[$index]}</span>
  {/foreach}

Or without phenom:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question