<div class="row {$row_class|default:'catalog-row'}" {if $body.pager}data-page="{$body.pager.number}"
     data-products-row{/if} data-tracking-view='{get_gtm_data encode=true type='ecommerce' method='ProductsImpressions' data=['products' => $products, 'listType' => $listType, 'listId' => $listId]}'>

   {foreach $smarty.get.dynamic_filter.variations as $var_filter}
      {if $var_filter.value|count == 1}
         {$var_filter_active = true}
      {/if}
   {/foreach}

    {$products->fetchVariations(true)|silent}
    {$products->fetchPhotos(2)}

    {foreach $products as $product}
      {if $body.filter_active and $product.matched_id_variation and $var_filter_active}
         {$hash = "#`$product.matched_id_variation`"}
      {else}
         {$hash = ''}
      {/if}
      <div class="{$catalog_class|default:'col-xl-3 col-sm-4 col-xxs-6'}">
         {include "components/block.products.item.tpl"}
      </div>
   {/foreach}
</div>
