<div class="main_widget_shoppingcart2{if !$main_widget_shoppingcart.shoppingcart.items.items} empty_card{/if}">
	<div class="widget_icon"></div>
	<div class="widget_title">
		<span class="button_name">{*c: {layout::i18n_format_date($i18n_config.date_format, '2013-05-12')} - *}{$template_text.default.shoppingcart}</span>
		<span class="button_text">
                {if $system_configuration.show_shoppingcart_different_items_sum != 1 && $main_widget_shoppingcart.shoppingcart.amount_sum > 0}
                    {$main_widget_shoppingcart.shoppingcart.amount_sum} Artikel | {if $customer->group_id == 101}{$main_widget_shoppingcart.shoppingcart.items.price_sum_net|number_format:"2":",":"."}{else}{$main_widget_shoppingcart.shoppingcart.items.price_sum_gross|number_format:"2":",":"."}{/if} &euro;
                {else if $system_configuration.show_shoppingcart_different_items_sum == 1 && $main_widget_shoppingcart.shoppingcart.different_amount_sum > 0}
                    {$main_widget_shoppingcart.shoppingcart.different_amount_sum} Artikel | {if $customer->group_id == 101}{$main_widget_shoppingcart.shoppingcart.items.price_sum_net|number_format:"2":",":"."}{else}{$main_widget_shoppingcart.shoppingcart.items.price_sum_gross|number_format:"2":",":"."}{/if} &euro;
                {else}
                     Noch keine Artikel
                {/if}
                </span>
	</div>
	<div class="widget_menu_arrow"></div>
	<div class="widget_menu_trennlinie"></div>
</div>

<div id="shoppingcart_kontext">
	{if $main_widget_shoppingcart.shoppingcart.items.items}
	{foreach item=item name=cartLoop from=$main_widget_shoppingcart.shoppingcart.items.items}
	{if $smarty.foreach.cartLoop.iteration < 6}
		<div class="cart_item {if $smarty.foreach.cartLoop.first}cart_item_first{/if}">
			<span class="item_amount">{$item->quantity}x</span>
			<div class="cart_item_image" style="background:#ffffff url({$SHOP_DIR}/images/article/thumb_{$item->default_image_file_name}) center center no-repeat;"></div>
			<span class="item_number">{$item->number}</span>
			<span class="item_name">{$item->name|truncate:50:"...":true}</span>
			<span class="item_price">{if $customer->group_id == 101}{$item->price_sum_net|number_format:"2":",":"."}{else}{$item->price_sum_gross|number_format:"2":",":"."}{/if} &euro;</span>
			<a title="item delete" class="cart_delete_button" href="#"></a>
			<div class="item_delivery_status_1"></div>
		</div>
	{/if}
	{/foreach}
	<div class="cart_footer">
		<span class="cart_sum_text">Gesamtsumme:</span>
		<span class="cart_sum_value">{if $customer->group_id == 101}{$main_widget_shoppingcart.shoppingcart.items.price_sum_net|number_format:"2":",":"."}{else}{$main_widget_shoppingcart.shoppingcart.items.price_sum_gross|number_format:"2":",":"."}{/if} &euro;</span>
		{if $customer->group_id == 101}
			<span class="cart_price_text">exkl. MwSt., zzgl. <a title="Versandkosten" href="/Versandkosten-B2B/">Versandkosten</a></span>
		{else}
			<span class="cart_price_text">inkl. MwSt., zzgl. <a title="Versandkosten" href="/VersandkostenZahlung/">Versandkosten</a></span>
		{/if}
	</div>
	
	<div class="cart_button_wrapper">
		<a title="Warenkorb Detailansicht" href="/Warenkorb/" id="cart_button_details">Warenkorb Detailansicht</a>
		<a title="Bestellung abschließen" href="/Kasse/" id="cart_button_cashdesk">Bestellung abschlie&szlig;en</a>
	</div>
       {/if}
</div>

