{block name=boxes_boxCart}
    {assign var=selected_header value=$smarty.const.TEMPLATE_SELECTED_HEADER}

    {if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}
    <div class="btn-group {if $selected_header eq 1}btn-group-head-cart{elseif $selected_header eq 3}cart-header-button{/if}" role="group">

        {if $selected_header eq 2}
        <a class="btn btn-default btn-head-cart-dropdown btn-lg dropdown-toggle hidden-xs" {if $content_count && $cart_data}data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"{else}href="{link page='cart' conn=SSL}"{/if}>
            {if $content_count && $cart_data}<span class="icon-shopping-cart-content">{$content_count}</span>{/if}
            <i class="fa fa-shopping-basket" aria-hidden="true"></i>
        </a>
        <a class="btn btn-default btn-head-cart-dropdown btn-lg visible-xs" href="{link page='cart' conn=SSL}">
            {if $content_count && $cart_data}<span class="icon-shopping-cart-content">{$content_count}</span>{/if}
            <i class="fa fa-shopping-basket" aria-hidden="true"></i>
        </a>
        {else}
        <a href="{link page='cart' conn=SSL}" class="btn btn-default btn-head-cart">
            <i class="fa fa-shopping-basket" aria-hidden="true"></i> <span class="hidden-sm {if $selected_header eq 3}hidden-xs{/if}">{txt key=TEXT_CART}</span> {if $content_count && $cart_data}({$content_count}){/if}
        </a>
        {/if}

        {if $selected_header neq 2}
        <button type="button" class="btn btn-cart btn-head-cart-dropdown dropdown-toggle hidden-xs" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <span class="caret"></span><span class="sr-only">Menü ein-/ausblenden</span>
        </button>
        {/if}

        <ul class="dropdown-menu main-header-cart dropdown-menu-right hidden-xs">
            {if $content_count && $cart_data}
            <li>
                {foreach name=cart_box item=module_data from=$cart_data}
                <div class="media">
                    <div class="media-left">
                        <a href="{$module_data.products_link}">
                            <img class="media-object img-thumbnail" src="{img img=$module_data.products_image type=m_thumb path_only=true}" width="50" alt="{$module_data.products_name}">
                        </a>
                    </div>
                    <div class="media-body">
                        <a href="{$module_data.products_link}" class="media-heading">{$module_data.products_quantity} x {$module_data.products_name}</a>
                        <p class="product-price">{$module_data.products_price.formated}</p>
                    </div>

                    <div class="media-right">
                        {form type=form name=cart action='dynamic' link_params=getParams method=post conn=SSL}
                        {form type=hidden name=action value=update_product}
                        {form type=hidden name='cart_delete[]' value=$module_data.products_key}
                        <a href="#" onclick="event.preventDefault();$(this).closest('form').submit();" data-toggle="tooltip" data-animation="false" title="" data-original-title="{txt key=TEXT_REMOVE}"><i class="fa fa-remove"></i></a>
                        {form type=formend}
                    </div>
                </div>
                {/foreach}

                <div class="subtotal-cart">{txt key=TEXT_SUB_TOTAL}: {$cart_total}</div>
                <div class="text-center">
                    <div class="btn-group btn-subtotal" role="group" aria-label="View Cart and Checkout Button">
                        <a class="btn btn-cart btn-sm" href="{link page='cart' conn=SSL}"><i class="fa fa-shopping-basket"></i> {txt key=TEXT_CART}</a>
                        <a class="btn btn-default btn-sm" href="{link page='checkout' paction='shipping' conn=SSL}"><i class="fa fa-check"></i> {txt key=TEXT_CHECKOUT}</a>
                    </div>
                </div>
            </li>
            {else}
            <li><p>{txt key=TEXT_EMPTY_CART}</p></li>
            {/if}
        </ul>

    </div>
    {/if}
{/block}