Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/shop/cart_items.tpl
{if $total_cart_items>0}
    <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#E4E4E4" align="left">
    {if $msg != "" }
    
    	<tr height="35">
        <td colspan="6" bgcolor="#FFFFFF"><div id="msg">{$msg}</div></td>
      </tr>
      {/if}
      <tr>
      	<td bgcolor="#E4E4E4"></td>
      	<td height="10%" align="center" bgcolor="#E4E4E4"><strong>SKU</strong></td>
        <td height="27" bgcolor="#E4E4E4"><strong>Product</strong></td>
        <td width="10%" align="center"><strong>Price</strong></td>
        <td width="15%" align="center"><strong>Quantity</strong></td>
        
        <td width="10%" align="center"><strong>Sub Total</strong></td>
      </tr>
      {section name=cartItems loop=$cartItems}
      
      <tr> 
      <td bgcolor="#FFFFFF" align="center"><a href="javascript:deleteCartProduct('{$cartItems[cartItems].product_id}', {$cartItems[cartItems].id});" title="Delete?"><img src="images/icons/delete.png" title="Delete?"  border="0"/></a></td>
      
      	<td bgcolor="#FFFFFF" align="center">{$cartItems[cartItems].product_code}</td>
        <td bgcolor="#FFFFFF"><img src="../product_images/{$cartItems[cartItems].product_image}" align="left" width="50" vspace="3" hspace="3" ><strong><a href="product.php?product_id={$cartItems[cartItems].product_id}&product_name={$cartItems[cartItems].product_name}">{$cartItems[cartItems].product_name}</a></strong><br />
        {$cartItems[cartItems].product_description}
</td>
        <td bgcolor="#FFFFFF" align="center">${$cartItems[cartItems].product_price}</td>
        <td bgcolor="#FFFFFF" align="center"><input name="product_qty_{$cartItems[cartItems].id}" id="product_qty_{$cartItems[cartItems].id}" type="text" size="3" value="{$cartItems[cartItems].product_qty}" style="width:35px" /> <a href="javascript:updateProductQty('product_qty_{$cartItems[cartItems].id}', '{$cartItems[cartItems].product_id}', {$cartItems[cartItems].id},{$cartItems[cartItems].qty_limit});"><img src="images/icons/disk.png" title="Update?"  border="0"/></a></td>
        <td bgcolor="#FFFFFF" align="center">${$cartItems[cartItems].total}</td>
      </tr>
     

      {/section}
 </table>
 <div style="clear:both;"></div>
 <table width="172" border="0" cellpadding="3" cellspacing="1" align="right" bgcolor="#E4E4E4">     
      <tr height="25">
        <td align="center" bgcolor="#E4E4E4" >Subtotal</td>
        <td  align="center" bgcolor="#FFFFFF" >${$cartSubTotal|string_format:"%.2f"}</td>
   </tr>
        <tr height="25">
        <td width="100" align="center" bgcolor="#E4E4E4" >Shipping</td>
        <td width="61" align="center" bgcolor="#FFFFFF"  >${$shippingTotal|string_format:"%.2f"}</td>
        </tr>
              <tr height="25">
        <td  align="center" bgcolor="#E4E4E4" ><strong>Total</strong></td>
        <td  align="center" bgcolor="#FFFFFF"  ><strong>${$cartTotal|string_format:"%.2f"}</strong></td>
        </tr>
</table>
<div style="clear:both;"></div>
<table width="100%" cellpadding="0" cellspacing="0" align="left">
<tr>
    <td height="35" align="right"> </td>
  </tr>
<tr>
    <td height="28" align="right">
    <a href="../shop"><img src="images/btns/continue_shopping_btn.jpg" alt="Continue Shopping" border="0" /></a><a href="checkout.php"><img src="images/btns/proceed_checkout_btn.jpg" alt="Proceed to check out" border="0" /></a><br />
<br />
<!----><br />
or
<br />
<form action="ReviewOrder.php" method="POST">
<input type='hidden' name='paymentType' value='{$paymentType}' >
<input type='hidden' name='currencyCodeType' value='{$currencyCodeType}' >

<input type='hidden' name='paymentAmount' value='{$cartTotal|string_format:"%.2f"}' />
<input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" />
</form>

</td>
</tr>
</table>

      {else}
<em>You have no items in your cart yet.</em>
 	
    {/if}
Return current item: Simple PHP Shopping cart - asaancart