Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/shop/pages/cart.tpl
<h2>Shopping cart</h2>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    <img src="images/spacer.gif" height="1" width="700">
        <table width="98%" border="0" cellspacing="0" cellpadding="0" align="left">
      <tr>
        <td valign="top">
        <div id="cart_items">{include file='shop/cart_items.tpl'}</div>
        </td></tr></table>
    </td>
  </tr>
  <tr>
    <tr>
    <td>
    
    </td>
  </tr>
  <tr>
  <td>
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr>
    <td valign="top">
    {if $totalCrossSellingProducts>0}
    <div id="section_heading">You might need these....</div>
    {section name=crossSellingProducts loop=$crossSellingProducts}
    <div id="product_info_box" align="left">
		<div id="inner_pro_info_box">
            <div>
            {section name=productMainImage loop=$productMainImage}
            {if $productMainImage[productMainImage].product_id == $crossSellingProducts[crossSellingProducts].product_id}
            <a href="product.php?product_id={$crossSellingProducts[crossSellingProducts].product_id}&product_name={$crossSellingProducts[crossSellingProducts].product_name}"><img src="../product_images/{$productMainImage[productMainImage].image_filename}" width="90" height="90" border="0" alt="{$crossSellingProducts[crossSellingProducts].product_name}" title="{$crossSellingProducts[crossSellingProducts].product_name}"/></a><br />
<br />{/if}
            {/section}
          </div>
			<div><a href="product.php?product_id={$crossSellingProducts[crossSellingProducts].product_id}&product_name={$crossSellingProducts[crossSellingProducts].product_name}">{$crossSellingProducts[crossSellingProducts].product_name|truncate:60:"..."}</a><br /><br /></div>
            <div class="price_text">
            {if $crossSellingProducts[crossSellingProducts].product_deal_price>0}
                Was: <span style="text-decoration:line-through">{$storeCurrency}  ${$crossSellingProducts[crossSellingProducts].product_price}</span><br />
                Now: <span style="text-decoration:none; font-weight:bold;">{$storeCurrency}  ${$crossSellingProducts[crossSellingProducts].product_deal_price}</span><br />
                Save: <span style="text-decoration:none; font-weight:bold; color:red;">{$storeCurrency}  ${$crossSellingProducts[crossSellingProducts].product_price-$crossSellingProducts[crossSellingProducts].product_deal_price|string_format:"%.2f"}</span>
            {else}
                {$storeCurrency} $ {$crossSellingProducts[crossSellingProducts].product_price}<br />
                <span class="gst">incl GST</span>
            {/if}
            <br /><br />
                {if $crossSellingProducts[crossSellingProducts].is_new=="yes"}{php}$this->assign('productTag','New Arrival'); $this->assign('productTagStyle','new_arrival');{/php}{/if}
        {if $crossSellingProducts[crossSellingProducts].is_special=="yes"}{php}$this->assign('productTag','Special Item'); $this->assign('productTagStyle','on_special');{/php}{/if}
        {if $crossSellingProducts[crossSellingProducts].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}
            </div>
        </div>
    </div>
    {/section}
    {/if}
<div style="clear:both; padding:7px;"></div>
    </td>
  </tr>

  <tr>
    <td valign="top">
    {if $totalRelatedProducts>0}
    <div id="section_heading">You might also be interested in ...</div>
    {section name=relatedProducts loop=$relatedProducts}
    <div id="product_info_box" align="left">
		<div id="inner_pro_info_box">
            <div>
            {section name=productMainImage loop=$productMainImage}
            {if $productMainImage[productMainImage].product_id == $relatedProducts[relatedProducts].product_id}
            <a href="product.php?product_id={$relatedProducts[relatedProducts].product_id}&product_name={$relatedProducts[relatedProducts].product_name}"><img src="../product_images/{$productMainImage[productMainImage].image_filename}" width="90" height="90" border="0" alt="{$relatedProducts[relatedProducts].product_name}" title="{$relatedProducts[relatedProducts].product_name}"/></a><br />
<br />{/if}
            {/section}
          </div>
			<div><a href="product.php?product_id={$relatedProducts[relatedProducts].product_id}&product_name={$relatedProducts[relatedProducts].product_name}">{$relatedProducts[relatedProducts].product_name|truncate:60:"..."}</a><br /><br /></div>
            <div class="price_text">
            {if $relatedProducts[relatedProducts].product_deal_price>0}
                Was: <span style="text-decoration:line-through">{$storeCurrency}  ${$relatedProducts[relatedProducts].product_price}</span><br />
                Now: <span style="text-decoration:none; font-weight:bold;">{$storeCurrency}  ${$relatedProducts[relatedProducts].product_deal_price}</span><br />
                Save: <span style="text-decoration:none; font-weight:bold; color:red;">{$storeCurrency}  ${$relatedProducts[relatedProducts].product_price-$relatedProducts[relatedProducts].product_deal_price|string_format:"%.2f"}</span>
            {else}
                {$storeCurrency} $ {$relatedProducts[relatedProducts].product_price}<br />
                <span class="gst">incl GST</span>
            {/if}
            <br /><br />
                {if $relatedProducts[relatedProducts].is_new=="yes"}{php}$this->assign('productTag','New Arrival'); $this->assign('productTagStyle','new_arrival');{/php}{/if}
        {if $relatedProducts[relatedProducts].is_special=="yes"}{php}$this->assign('productTag','Special Item'); $this->assign('productTagStyle','on_special');{/php}{/if}
        {if $relatedProducts[relatedProducts].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}
            </div>
        </div>
    </div>
    {/section}
    {/if}
<div style="clear:both; padding:7px;"></div>
    </td>
  </tr>
</table>

  
  </td>
  </tr>
  
</table>
Return current item: Simple PHP Shopping cart - asaancart