Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/site_mini_cart.tpl
{literal}
<script language="javascript">
function showCart(){
	if(document.getElementById("mini_cart").style.display){
		document.getElementById("mini_cart").style.display="";
	}else{
		document.getElementById("mini_cart").style.display="none";
	}
}
</script>
{/literal}
<div style="background-color:#C4E1FF; padding:5px;">
<span class="mini_cart_link"><a href="javascript:showCart()"><strong>My Cart &darr;</strong></a></span>
</div>
<div id="mini_cart" style="background-color:#C4E1FF; padding:5px; display:none;">
{if $total_cart_items>0}
{section name=cart_product_list_mini loop=$cart_product_list_mini}
<div style="border-bottom:1px solid #cccccc; padding-bottom:5px;">
{$cart_product_list_mini[cart_product_list_mini].product_name} {$cart_product_list_mini[cart_product_list_mini].product_qty}x${$cart_product_list_mini[cart_product_list_mini].product_price}=${$cart_product_list_mini[cart_product_list_mini].total}</div>
{/section}
<div align="right">Total: ${$grand_total_mini}</div>
<div align="right"><a href="my_cart.php"><img style="border:none;" src="images/btns/mini_checkout_btn.gif" title="Checkout" alt="Checkout" /></a></div>
{else}
<em>Your cart is empty</em>
{/if}
</div>
Return current item: Simple PHP Shopping cart - asaancart