{extends_parent}

{block "tpl-vars" append}
    {$tpl_vars.voucher_btn_class = "btn-primary"}
    {$tpl_vars.online_payment_visible_items = 1}
    {$tpl_vars.delivery_collapsible = true}
    {$tpl_vars.preselect_delivery = "false"}
    {$tpl_vars.btns_in_sidebar = "true"}
    {$tpl_vars.cart_sidebar = "true"}
    {$tpl_vars.pricebox_cartsaving = true}
    {$tpl_vars.delivery_country_picker = $cfg['znz_tpl']['show_delivery_country_picker']|default:true}
    {$tpl_vars.optionalProductGifts = true}
{/block}

{block 'printAvailability'}
    {if $product.availability == 0 and $product.inStore > 0}   {* skladem jen částečně *}
       <p class="delivery-partly">{$product.deliveryTimeText} {t pocet=$product.inStore escape=false}pouze {pocet}&nbsp;ks{/t}</p>
    {elseif $product.availability eq 2}
       <p class="delivery delivery-{$product.deliveryTime}">{t}skladem u dodavatele{/t}</p>
    {else}
       <p class="delivery delivery-{$product.deliveryTime}">{$product.deliveryTimeText}{if $product.inStore > 4}&nbsp;>&nbsp;5&nbsp;{t}ks{/t}{elseif $product.inStore > 0}&nbsp;{$product.inStore}&nbsp;{t}ks{/t}{/if}</p>
    {/if}
{/block}
