57 lines
2.9 KiB
Smarty
57 lines
2.9 KiB
Smarty
{extends "focus/focus.base.tpl"}
|
|
|
|
{block "data"}data-category="{$cat_id}"{/block}
|
|
|
|
{block "focus-title"}{t}Vložit do setu{/t}{/block}
|
|
|
|
{block "focus-content"}
|
|
{foreach $category.products as $product}
|
|
<div class="inner" data-product="{$product.id}" data-position="{$product@iteration}">
|
|
<div class="col-sm-6 col-xs-12 product-gallery hidden-xs-down">
|
|
<div class="photo-main">
|
|
<a href="{get_photo photo=$product.image size=0}"
|
|
title="{$product.image.descr|default:$product.title}" data-photo-position="0">
|
|
<img src="{get_photo photo=$product.image size=3}"
|
|
alt="{$product.image.descr|default:$product.title}" class="img-responsive">
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-xs-12 content">
|
|
<h2>{$product.title}</h2>
|
|
<div class="perex">
|
|
<p>{$product.descr nofilter}</p>
|
|
<a href="{url s=product IDproduct=$product.id TITLE=$product.title}"
|
|
class="descr-link">{t}Detail produktu{/t}</a>
|
|
</div>
|
|
{if $product.variations|count}
|
|
{include "product/sets/product.sets.variations.tpl" product=$product}
|
|
{/if}
|
|
<div class="add-to-cart-box">
|
|
<input type="hidden" name="IDcategory" value="{$cat_id}">
|
|
<input type="hidden" name="IDproduct" value="{$product.id}">
|
|
<input type="hidden" name="image" value="{get_photo photo=$product.image size=$image|default:12}">
|
|
<input type="hidden" name="name" value="{$product.title}">
|
|
<input type="hidden" name="price"
|
|
value="{$product.productPrice.value_with_vat->addDiscount(toDecimal($body.product.discount))}">
|
|
<input type="hidden" name="priceOriginal" value="{$product.productPrice.value_with_vat}">
|
|
|
|
<p class="price"
|
|
data-price>{$product.productPrice.value_with_vat->addDiscount(toDecimal($body.product.discount))|format_price}</p>
|
|
|
|
<button type="button" value="Vložit do setu" class="btn btn-primary btn-block"
|
|
data-product-id="{$product.id}" data-add-to-set>
|
|
{t}Vložit do setu{/t}
|
|
</button>
|
|
<p>
|
|
<a href="{url s=product IDproduct=$product.id TITLE=$product.title}"
|
|
title="{$product.title}">{t}Koupit samostatně{/t}</a>
|
|
{if $force_original_price or ($body.product.discount->isPositive() and (!$product.discount or $product.discount < $body.product.discount))}
|
|
<span data-price-original>({$product.price_array|format_price})</span>
|
|
{/if}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
{/block}
|