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

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

    {block "fetchData"}
    {/block}

   {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}
      {block "catalog-banner"}{/block}
      <div class="{$catalog_class|default:'col-xl-3 col-sm-4 col-xxs-6'}">
         {include "components/block.products.item.tpl"}
      </div>
   {/foreach}

   {* fallback pro verzi 1, u verze 2 dochází ke kolizi s datama v data-tracking-view attributu,
   ve verzi 1 chodí info o produktech v rámci categoryView eventy *}
   {if $dbcfg.analytics.google_tag_manager.gtm_dl_version == 1}
      {include "block.gtm.tpl" gtm_type="gtm"}
   {/if}
</div>
