Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/shop/new_products.tpl
<h2>Featured products</h2>
{section name=newArrivalProducts loop=$newArrivalProducts}
<div id="featured_product_info_box" align="left">
<div id="inner_pro_info_box">
    <div style="height:200px;">
    {section name=allBrands loop=$allBrands}
{if $allBrands[allBrands].brand_id == $newArrivalProducts[newArrivalProducts].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 == $newArrivalProducts[newArrivalProducts].product_id}
<img src="../product_images/{$productMainImage[productMainImage].image_filename}" width="150" /><br />{/if}
{/section}
<br />
<span class="pro_heading_text"><strong><a href="product.php?product_id={$newArrivalProducts[newArrivalProducts].product_id}&product_name={$newArrivalProducts[newArrivalProducts].product_name}">{$newArrivalProducts[newArrivalProducts].product_name}</a></strong></span>
<br />
{$newArrivalProducts[newArrivalProducts].product_overview|truncate:70:"..."}<br />
    </div>
	<div>
    <span class="price_text">${$newArrivalProducts[newArrivalProducts].product_price}</span><br /><a href="add_to_cart.php?mode=add&product_id={$newArrivalProducts[newArrivalProducts].product_id}&product_name={$newArrivalProducts[newArrivalProducts].product_name}"><img src="images/btns/add_to_cart_btn.gif" border="0" /></a><a href="product.php?product_id={$newArrivalProducts[newArrivalProducts].product_id}&product_name={$newArrivalProducts[newArrivalProducts].product_name}" title="View"><img src="images/btns/view_btn.jpg" border="0" alt="View" title="View"/></a>
    </div>
</div>
</div>
{/section}
Return current item: Simple PHP Shopping cart - asaancart