42 lines
2.1 KiB
Smarty
42 lines
2.1 KiB
Smarty
<div id="privatesales_similarproduct">
|
|
{if $ps_other_products|@count > 0}
|
|
<div class='slider_sales_product_footer'>
|
|
<ul>
|
|
{foreach from=$ps_other_products item=product}
|
|
<li>
|
|
|
|
<div class="hover-slide">
|
|
<a onclick="showExpressCart(event); return false;" class="add-to-cart ajax_add_to_cart_product_footer_button" rel="{$product.id_product}" href="" title="{l s='Add to cart' mod='privatesales_similarproducts'}"></a>
|
|
<a class="see-product" href="{$product.link}" target="_blank" title="{l s='See this product' mod='privatesales_similarproducts'}"></a>
|
|
</div>
|
|
<div class="product_added product_added_{$product.id_product}">
|
|
<p>{l s='Product added to your cart' mod='privatesales_similarproducts'}</p>
|
|
</div>
|
|
|
|
<div class="similar_product">
|
|
<div class="product_sellers_label">
|
|
<span class="product_link_sellers">{$product.name}</span>
|
|
</div>
|
|
<div class="img_sellers">
|
|
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'medium')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />
|
|
</div>
|
|
<div class="info_sellers">
|
|
<p class="price">{$product.price}</p>
|
|
<p class="price_info">
|
|
<span class="old_price">{convertPrice price=$product.price_without_reduction}</span>
|
|
{if $product.specific_prices.reduction_type =='percentage'}
|
|
{assign var="reduc_value" value=$product.specific_prices.reduction * 100}
|
|
<span class="percentage">(-{$reduc_value|intval}%)</span>
|
|
{elseif $product.specific_prices.reduction_type == 'amount'}
|
|
<span class="amount">(-{$product.specific_prices.reduction|number_format:2:",":"."}€)</span>
|
|
{/if}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
</div>
|