2015-08-20 11:28:09 +02:00

41 lines
1.5 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" checked name="{$product->id}" class="checkbox_add_right">
</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}" 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> {l s='J\'achete' mod='cms_pack'}</button>
</div>
</div>
</div>
</div>