{* Информера корзины (отдаётся аяксом) *}

    <div class="fadelink">
    <span class="pull-right">
        <a href="./cart" class="btn"><i class="icon-basket icon-large"></i></a>
    </span>
        {if $cart->total_products>0} 
       <span class="badge  badge-inverse">{$cart->total_products}</span>
        {/if}
                <div class="shopping_cart_mini hidden-phone">


            <div class="inner-wrapper">
            {if $cart->total_products>0}
                                            Recently added item(s)
 {foreach from=$cart->purchases item=purchase}                                   
<div class="item">
		{$image = $purchase->product->images|first}
		{if $image}
		<a href="products/{$purchase->product->url}" class="product-image" title="{$purchase->product->name|escape}"><img src="{$image->filename|resize:50:50}" alt="{$purchase->product->name|escape}"></a>
		{/if}
    <div class="product-detailes"> <a href="products/{$purchase->product->url}" class="product-name">{$purchase->product->name|escape}</a>
		{$purchase->variant->name|escape}
        <div class="product-price">{$purchase->amount} x
<span class="price">{($purchase->variant->price)|convert} {$currency->sign}</span>                                                    
        </div>
    </div>
    <div class="alignright">
        <a href="./cart"><i class="icon-edit-1"></i></a>
        <a href="cart/remove/{$purchase->variant->id}"><i class="icon-trash-3"></i></a>
    </div>
</div>
{/foreach}

                <div class="wrapper">
                 <a href="./cart" class="button">Оформить заказ</a></div>
                
{else}
	Корзина пуста
{/if}                
                          </div>
        </div>
    </div>
<script type="text/javascript" >
        jQuery(".shoppingcart").bind('mouseenter',function() {
            jQuery(".shopping_cart_mini",this).stop(true, true).fadeIn(200, "linear");
        });

        jQuery(".shoppingcart").bind('mouseleave',function() {
            jQuery(".shopping_cart_mini",this).stop(true, true).fadeOut(200, "linear");
        });
</script>

