Вывести конкретную характерстику в любом месте шаблона

{$curr_product = $wa->shop->products("id/"|cat:$product.id)}
{$all_features = $wa->shop->features($curr_product, 0)}
{$curr_product = array_shift($curr_product)}
{foreach $curr_product.features as $fcode=>$f}
  {if $fcode == "brendy"}
      <div class="name">Наименование: {$all_features.$fcode.name|escape}</div>
      <div class="value">Значение:
          {if is_array($f)}
              {if $all_features.$fcode.type == 'color'}
                  {implode('<br>', $f)}
              {else}
                  {implode(', ', $f)}
              {/if}
            {else}
              {$f}
          {/if}
      </div>
  {/if}
{/foreach}

Смотрите также: