2015-12-14 16:07:18 +01:00

53 lines
2.4 KiB
Smarty

<div class="pack_left">
<p class="title">
{l s='Le panier qui sauve la vie' mod='cms_pack'}
</p>
{if $pack.remise && $reductionAvailable && $pack.remise_percent != 0}
<p class="desc">
<span class="remise">
{l s='Vous économisez'} <span>{$pack.remise_percent} %</span> {l s='sur cette sélection'}
</span>
</p>
{/if}
<div class="products">
<div class="inner">
{foreach from=$pack.products item=product}
{assign var='id_image' value=Product::getCover($product->id)}
<div class="product_inner">
<div class="row {if $product->quantity == 0}not_available{/if}">
<div class="col-md-1">
<input {if $product->quantity == 0}disabled{/if} type="checkbox" name="{$product->id}" class="checkbox_add_right custom-input">
</div>
<div class="col-md-3">
<img class="img-responsive" src="{$link->getImageLink($product->link_rewrite, $id_image.id_image, 'cart_default')|escape:'html':'UTF-8'}" alt="{$product->name|escape:'html':'UTF-8'}" title="{$product->name|escape:'html':'UTF-8'}" itemprop="image" />
</div>
<div class="col-md-8">
<p class="name">{$product->name}</p>
<div class="price">
{if $product->quantity == 0}
<p class="not_available">{l s='Hors stock'} <br /> {$product->available_later}</p>
{else}
<div class="quantity">
<input type="text" value="1" size="3" data-product-id="{$product->id}" data-product-price="{displayPrice price=$product->price}" data-product-price-nf="{$product->price}" data-product-name="{$product->name}" data-product-img="{$link->getImageLink($product->link_rewrite, $id_image.id_image, 'cart_default')|escape:'html':'UTF-8'}" name="quantity_{$product->id}" class="product_add_{$product->id} quantity_right">
</div>
<span> <span class="min">x</span> {displayPrice price=$product->price}</span>
{/if}
</div>
</div>
</div>
</div>
{/foreach}
</div>
<div class="total">
<div class="price_info">
{l s='Sous total'} <span class="price">{displayPrice price=$pack.price_total}</span>
</div>
<div class="add_to_cart">
<button class="btn add_to_cart_pack" id="add_pack_right" onclick="trackConversion(`{CMSCategory::getNameStatic($id_cms_category)}`, `Le panier qui sauve la vie`, `Ajout au panier depuis la page Astuce`);"><i class="icon icon-shopping-cart"></i> <span>{l s='J\'achète' mod='cms_pack'}</span></button>
</div>
</div>
</div>
</div>