{if !$product}
   {$product = $body.product}
{/if}

{if $ctrl.active_language != 'en'}
   {foreach $product.campaign_codes as $flag}
      {if $flag.catalog_class}
         <span class="flag flag-{$flag.catalog_class}">{$flag.singular}</span>
      {/if}
   {/foreach}

   {if $free_delivery and $free_delivery->lowerThan($product.price_array.value_with_vat) and $ctrl.active_language != 'en'}
      <span class="flag flag-free-delivery">{t}Doprava zdarma{/t}</span>
   {/if}

   {calc_product_discount product=$product assign='discount'}
   {if $discount.discount->asFloat() >= 1 and !$hide_discount}
      <span class="flag flag-discount">
         -{$discount.discount->asFloat()|round} %
      </span>
   {/if}
{/if}
