49 lines
1.8 KiB
Smarty
49 lines
1.8 KiB
Smarty
{if !$product}
|
|
{$product = $body.product}
|
|
{/if}
|
|
|
|
<div class="submit-block">
|
|
{$step = 1}
|
|
|
|
{ifmodule PRODUCTS__STEP}
|
|
{$data = $product->getData()}
|
|
{$step = $data.step|default:$step}
|
|
{/ifmodule}
|
|
|
|
{if !$hide_buycount or ($isB2BUser and !$product.variations|count)}
|
|
{block "product-buy-count"}
|
|
<div class="buy-count-wrapper">
|
|
<input class="form-control" type="number" name="No" title="{t}Počet kusů{/t}" value="{$step}" step="{$step}" data-filter="noreload">
|
|
<div class="buy_count">
|
|
<button type="button" class="fc icons_caret-up plus_unit"
|
|
title="{t mnozstvi=$step}Přidat {mnozstvi} ks{/t}"></button>
|
|
<button type="button" class="fc icons_caret-down minus_unit"
|
|
title="{t mnozstvi=$step}Odebrat {mnozstvi} ks{/t}"></button>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{else}
|
|
<input type="hidden" name="No" value="{$step}">
|
|
{/if}
|
|
|
|
{block "submit-btn"}
|
|
<button type="submit" class="btn btn-insert" data-submit-btn{if $dbcfg.analytics.google_tag_manager.active_fe_events == 'Y'} data-tracking-clickAddToCart='{get_gtm_data encode=true type='ecommerce' method='ClickAddToCart' data=['product' => $product, 'listType' => $listType, 'listId' => $listId]}'{/if}>
|
|
{$submit_text|default:"{t}Vložit do košíku{/t}" nofilter}
|
|
|
|
{if $body.product.variations.variations|count and !$isB2BUser}
|
|
<span class="non-variation" data-variation-error>{t}Vyberte variantu{/t}</span>
|
|
{/if}
|
|
</button>
|
|
{/block}
|
|
|
|
{ifmodule PRODUCTS_FAVORITES}
|
|
{if !$hide_favorites}
|
|
{ifmodule "JS_SHOP"}
|
|
{include "product/product.js-add-to-favorites.tpl"}
|
|
{elsemodule}
|
|
{include "product/add-to-favorites.tpl"}
|
|
{/ifmodule}
|
|
{/if}
|
|
{/ifmodule}
|
|
</div>
|