2015-10-28 17:48:51 +01:00

41 lines
1.8 KiB
Smarty

<div class="pack_left">
<p class="title">
{l s='Le panier qui sauve la vie' mod='cms_pack'}
</p>
<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">
<div class="col-md-1">
<input 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">
<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>
</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"><i class="icon icon-shopping-cart"></i> <span>{l s='J\'achète' mod='cms_pack'}</span></button>
</div>
</div>
</div>
</div>