{if $products|count}
    {$products->fetchParameters()|silent}

    {if $activeCategory.category.data.parameter}
        {$param_id = $activeCategory.category.data.parameter}
       <div class="collections-wrapper">
          <p class="title">{t}Vyberte{/t} {$body.product.param[$param_id].name}</p>
          <div class="product-collections">
              {sort_collection products=$products assign="sortProducts"}
              {foreach $sortProducts as $product}
                 <a href="{url s=product IDproduct=$product.id TITLE=$product.title}" title="{$product.title}"
                    class="product-collection-item {if $product.id == $body.product.id}active{/if}">

                     {if $product.param[$param_id].value_meaning == "image"}
                        <div class="img">
                           <img src="{$product.param[$param_id].description}" alt="" width="55" height="47">
                        </div>
                     {/if}

                     {$product.param[$param_id].value}
                 </a>
              {/foreach}
          </div>
       </div>
    {/if}
{/if}
