Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/shop/featured_products.tpl
<br />
<div id="section_heading">Featured Products</div>
{section name=featuredProducts loop=$featuredProducts}
<div id="featured_product_info_box" align="left">
<div id="featured_inner_pro_info_box">
    <div>
   <!--  {section name=allBrands loop=$allBrands}
{if $allBrands[allBrands].brand_id == $featuredProducts[featuredProducts].brand_id}
<img src="../brand_images/{$allBrands[allBrands].brand_logo}" title="{$allBrands[allBrands].brand_name}" width="70" /><br />{/if}
{/section} -->
{section name=productMainImage loop=$productMainImage}
{if $productMainImage[productMainImage].product_id == $featuredProducts[featuredProducts].product_id}
<a href="product.php?product_id={$featuredProducts[featuredProducts].product_id}&product_name={$featuredProducts[featuredProducts].product_name}"><img src="../product_images/{$productMainImage[productMainImage].image_filename}" width="90"  height="90" border="0" alt="{$featuredProducts[featuredProducts].product_name}" title="{$featuredProducts[featuredProducts].product_name}"/></a><br />{/if}
{/section}
<!----><br />
<span class="pro_heading_text"><a href="product.php?product_id={$featuredProducts[featuredProducts].product_id}&product_name={$featuredProducts[featuredProducts].product_name}">{$featuredProducts[featuredProducts].product_name}</a></span>
<br />
{$featuredProducts[featuredProducts].product_overview|truncate:70:"..."}
 {section name=productAttributes loop=$productAttributes}
{if $productAttributes[productAttributes].product_id == $featuredProducts[featuredProducts].product_id}
	{if $attCnt < 4 }
	<br />&raquo;&nbsp;{$productAttributes[productAttributes].attribute_name}: {$productAttributes[productAttributes].attribute_value}
    {$attCnt++}
    {/if}
{/if}
{/section}
{php}$this->assign('attCnt',0);{/php} 
<br />
    </div>
	<div>
    <div class="price_text">
    {if $featuredProducts[featuredProducts].product_deal_price>0}
    	Was: <span style="text-decoration:line-through">{$storeCurrency} ${$featuredProducts[featuredProducts].product_price}</span><br />
        Now: <span style="text-decoration:none; font-weight:bold;">{$storeCurrency} ${$featuredProducts[featuredProducts].product_deal_price}</span><br />
        Save: <span style="text-decoration:none; font-weight:bold; color:red;">{$featuredProducts[featuredProducts].product_price-$featuredProducts[featuredProducts].product_deal_price|string_format:"%.2f"}</span>
    {else}
        {$storeCurrency} ${$featuredProducts[featuredProducts].product_price}
    {/if}
    
    </div>
    </div>
	
</div>
</div>
{/section}
Return current item: Simple PHP Shopping cart - asaancart