2016-07-06 11:21:41 +02:00

35 lines
2.2 KiB
Smarty

<div id="special_block_right" class="block products_block exclusive blockspecials">
<div class="block_content">
<div class="products clearfix">
<h4>{$label}</h4>
<ul class="product_list grid row">
{for $i=0 to ($showAccessories|@count-1)}
{if ($showAccessories[$i]!=null)}
<li class="col-xs-12 col-sm-4 col-md-2">
{assign var='showAccessory' value=$showAccessories[$i]}
<a href="{$showAccessory['link']}" class="content_img product_img_link"><img src="{$showAccessory['image_url']}"/></a>
<h5><a href="{$showAccessory['link']}" title="{$showAccessory['product']->name}">{$showAccessory['product']->name}</a></h5>
<p>{$showAccessory['product']->description_short}</p>
<span class="price">{$showAccessory['price']}</span>
{if ($showAccessory['product']->id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $showAccessory['product']->available_for_order AND !isset($restricted_country_mode) AND $showAccessory['product']->minimal_quantity == 1 AND $showAccessory['product']->customizable != 2}
{if ($showAccessory['quantity'] > 0 OR $showAccessory['product']->allow_oosp)}
<p id="add_to_cart" class="buttons_bottom_block no-print cart_block_product_accessories" data-id-product="{$showAccessory['id_product']}">
<button type="submit" name="Submit" class="exclusive">
<span>{l s='Add to cart'}</span>
</button>
</p>
{else}
<span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>
{/if}
{else}
<div style="height:21px;"></div>
{/if}
</li>
{/if}
{/for}
</ul>
</div>
</div>
</div>