Minishop2 + msOptionsPrice: strange outpt

Hi all!

I use Minishop2 (2.4.12) and msOptionPrice (2.5.8-beta).

With
[[!msCart? &tpl=`pix.msCart`]]
and pix.msCart chunk
...
 {if $product.options?}
       <div class="small">
           {$product.options | join : '; '}
      </div>
{/if}
...
product options output is as shown in the image.
How can I fix this?

Best regards
Fabian
Fabian Christen
20 июня 2018, 08:30
modx.pro
815
0

Комментарии: 3

Володя
20 июня 2018, 11:53
2
+1
Hello.
Replace it with
{if $product.options?}
    {foreach $product.options as $key => $option}
        {* exclude the option key *}
        {if $key in ['modification','modifications','msal']}{continue}{/if}

        {set $caption = ('ms2_product_' ~ $key)|lexicon}
        {if $option is array}
            {$caption} - {$option | join : '; '}
        {else}
            {$caption} - {$option}
        {/if}
    {/foreach}
{/if}
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
3