Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/shop/all_products.tpl
{section name=allProducts loop=$allProducts}
<div id="product_info_box" align="left">
<div id="inner_pro_info_box">
    <div>
   <!--  {section name=allBrands loop=$allBrands}
{if $allBrands[allBrands].brand_id == $allProducts[allProducts].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 == $allProducts[allProducts].product_id}
<a href="product.php?product_id={$allProducts[allProducts].product_id}&product_name={$allProducts[allProducts].product_name}"><img src="../product_images/{$productMainImage[productMainImage].image_filename}" width="90" height="90"  border="0" alt="{$allProducts[allProducts].product_name}" title="{$allProducts[allProducts].product_name}"/></a><br />
{/if}
{/section}
<br />
<span class="pro_heading_text"><a href="product.php?product_id={$allProducts[allProducts].product_id}&product_name={$allProducts[allProducts].product_name}" title="{$allProducts[allProducts].product_name}">{$allProducts[allProducts].product_name|truncate:50:"..."}</a></span>
<br />
{$allProducts[allProducts].product_overview|truncate:70:"..."}
 {section name=productAttributes loop=$productAttributes}
{if $productAttributes[productAttributes].product_id == $allProducts[allProducts].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 $allProducts[allProducts].product_deal_price>0}
    	Was: <span style="text-decoration:line-through">{$storeCurrency} ${$allProducts[allProducts].product_price}</span><br />
        Now: <span style="text-decoration:none; font-weight:bold;">{$storeCurrency} ${$allProducts[allProducts].product_deal_price}</span><br />
        Save: <span style="text-decoration:none; font-weight:bold; color:red;">{$storeCurrency} ${$allProducts[allProducts].product_price-$allProducts[allProducts].product_deal_price|string_format:"%.2f"}</span>
    {else}
        {$storeCurrency} ${$allProducts[allProducts].product_price}<br />
        
    {/if}
    <br />
    </div>
    <!--
    -->
    {if $allProducts[allProducts].is_new=="yes"}{php}$this->assign('productTag','New Arrival'); $this->assign('productTagStyle','new_arrival');{/php}{/if}
    {if $allProducts[allProducts].is_special=="yes"}{php}$this->assign('productTag','Special Item'); $this->assign('productTagStyle','on_special');{/php}{/if}
    {if $allProducts[allProducts].is_clearence=="yes"}{php}$this->assign('productTag','Clearence Item'); $this->assign('productTagStyle','clearence_item');{/php}{/if}    
    <div style="padding-top:5px;"></div><span class="{$productTagStyle}">{$productTag}</span>
    {php}$this->assign('productTag',''); $this->assign('productTagStyle','');{/php}
    <!-- <a href="add_to_cart.php?mode=add&product_id={$allProducts[allProducts].product_id}&product_name={$allProducts[allProducts].product_name}"><img src="images/btns/add_to_cart_btn.gif" border="0" /></a><a href="product.php?product_id={$allProducts[allProducts].product_id}&product_name={$allProducts[allProducts].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