<!-- shoppingCart plugin -->

{assign var='shc_total' value='0.00'}
{foreach from=$shcItems item='item'}
	{math equation="total + (price * quantity)" total=$shc_total quantity=$item.Quantity price=$item.Price assign='shc_total'}	
{/foreach}

<div id="shopping_cart_block">
	{include file=$smarty.const.RL_PLUGINS|cat:'shoppingCart'|cat:$smarty.const.RL_DS|cat:'my_cart_block.tpl' shcItems=$shcItems}
</div>

<script type="text/javascript">
	{literal} 
	$(document).ready(function()
	{
		$('.clear-cart').live('click', function()
		{
			$('.clear-cart').flModal({
				caption: '',
				content: '{/literal}{$lang.shc_do_you_want_clear_cart}{literal}',
				prompt: 'xajax_clearShoppingCart',
				width: 'auto',
				height: 'auto',
				click: false
			});
		});
	});
	{/literal} 
</script>

<!-- end shoppingCart plugin -->