Files
kupshop/web/templates/x/category.watchdog.tpl
2025-08-02 16:30:27 +02:00

78 lines
3.0 KiB
Smarty

{extends "account/account-wrapper.tpl"}
{block "title"}
<h1>{$view->getTitle()}</h1>
{/block}
{block "account-content"}
{$img_size = "product_gallery"}
{$photo_dimensions = $cfg.Photo.types["product_gallery"].size}
{if isset($cfg.Photo.types["product_cart"])}
{$img_size = "product_cart"}
{$photo_dimensions = $cfg.Photo.types["product_cart"].size}
{/if}
<div class="watchdog-products">
{foreach $body.productsList as $product}
<div class="product">
<div class="image">
<a href="{url s=product IDproduct=$product.id TITLE=$product.title}" title="{t}Zobrazit produkt{/t}">
{block 'image'}
<img src="{get_photo photo=$product.image size=$img_size}" alt="{$product.title}"
class="img-responsive" width="{$photo_dimensions[0]}" height="{$photo_dimensions[1]}">
{/block}
</a>
</div>
<div class="title">
{block 'product-title'}
<a href="{url s=product IDproduct=$product.id TITLE=$product.title}"
title="{t}Zobrazit produkt{/t}">
{$product.title}
</a>
{if $product.variationId}
<span class="variation">{$product.variationTitle}</span>
{/if}
<div class="availability-resp">
<p class="delivery delivery-{$product.deliveryTime}">
{$product.deliveryTimeText}
</p>
</div>
<div class="price-resp">
{$product.price_array|format_price}
</div>
{/block}
</div>
{block "availability"}
<div class="availability">
<p class="delivery delivery-{$product.deliveryTime}">
{$product.deliveryTimeText}
</p>
</div>
{/block}
{block "price-total"}
<div class="price">
{$product.price_array|format_price}
</div>
{/block}
<div class="product-links">
{if $product.watchdogAvailability}
<p>{t}Hlídat dostupnost{/t} <a href="{path('kupshop_watchdog_watchdog_remove', ['id_product' => $product.id, 'id_variation' => $product.variationId, 'availability' => 1])}"><span class="fc icons_trash"></span></a></p>
{/if}
{if !empty($product.watchdogPrice) && $product.watchdogPrice->isPositive()}
<p>{t}Hlídat cenu pod{/t} {$product.watchdogPrice|format_price} <a href="{path('kupshop_watchdog_watchdog_remove', ['id_product' => $product.id, 'id_variation' => $product.variationId, 'availability' => 0, 'price' => 1])}"><span class="fc icons_trash"></span></a></p>
{/if}
</div>
</div>
{/foreach}
</div>
{block "pager-watchdog"}
{if $body.pager.count > 1}
{include "components/pager.tpl" pager=$body.pager load_button=false}
{/if}
{/block}
{/block}