<div class="product-availability-box">
   <p class="delivery delivery-{$product.deliveryTime}">
      <span class="fc icons_package"></span>
      {$product.deliveryTimeText}{if $product.deliveryTime == 0} - <a href="" data-focus-opener="product-delivery">{t}připraveno k odeslání{/t}</a>{/if}
   </p>

    {get_sellers groupBy='data/city' assign='sellersGrouped'}
    {get_stores_amounts id_product=$product.id id_variation=$product.variationId assign="storesAmount"}
    {$availableStoresCount = 0}
    {foreach $sellersGrouped as $city => $sellers}
        {foreach $sellers as $seller}
            {if $storesAmount.stores[$seller.id_store].in_store > 0}
                {$availableStoresCount = $availableStoresCount + 1}
            {/if}
        {/foreach}
    {/foreach}

   {if $availableStoresCount > 0 and $ctrl.active_language != 'sk'}
      <p class="delivery delivery-0">
         <span class="fc icons_gps"></span>
         {t}dostupné na{/t} <a href="" data-focus-opener="product-availability">{$availableStoresCount} {t plural="prodejnách" plural5="prodejnách" count=$availableStoresCount}prodejně{/t}</a>
      </p>
   {/if}
</div>

{include "focus/focus.product-availability.tpl" class="product-availability"}

{include "focus/focus.product-delivery.tpl" class="product-delivery"}
