

    {* <!-- ######################## cart < v6.1.0 && > 6.3.2 ######################## --> *}

    <div id="cart">orig

        {if $show_cart_content == true}

            {form type=form name=cart action='dynamic' link_params=getParams method=post conn=SSL}
            {form type=hidden name=action value=update_product}


            <div class="row">
                <div class="col col-md-12">
                    <h1 class="breaking-headline">{txt key=TEXT_CART}</h1>
                </div>
                <div class="col col-md-12 text-right">
                    <div class="btn-group">
                        <button type="submit" class="btn btn-default preloader">
                            <span class="glyphicon glyphicon glyphicon-refresh"></span>
                            <span>{txt key=BUTTON_UPDATE}</span>
                        </button>
                        <a class="btn btn-success preloader" href="{link page='checkout' paction='shipping' conn=SSL}">
                            {txt key=BUTTON_CHECKOUT}
                        </a>
                    </div>

                    <a href="javascript:history.back();" class="btn btn-default pull-left">
                        <span class="glyphicon glyphicon-chevron-left"></span>
                        <span class="hidden-xs">{txt key=BUTTON_BACK}</span>
                    </a>
                </div>
            </div>

            <br />

            {$message}

            <div id="cart-table" class="div-table table-hover table-bordered">
                <div class="row th">
                    <div class="col col-sm-8">
                        {txt key=TEXT_ARTICLE}
                    </div>
                    <div class="col col-sm-2 hidden-xs text-right">
                        {txt key=TEXT_SINGLE_PRICE}
                    </div>
                    <div class="col col-sm-2 hidden-xs text-right">
                        {txt key=TEXT_TOTAL_PRICE}
                    </div>
                </div>
                {foreach name=aussen key=key item=data from=$cart_data}
                    {form type=hidden name='products_key[]' value=$data.products_key}
                    <div class="row tr">
                        <div class="col col-xs-5 col-sm-2">
                            <p class="image">
                                {if !$data.products_image || $data.products_image == 'product:noimage.gif'}
                                    <a href="{$data.products_link}" class="vertical-helper image-link no-image img-thumbnail">{img img='no_image.png' type=t_img class="productImageBorder img-responsive" alt=$data.products_name|escape:"html"}</a>
                                {else}
                                    <a href="{$data.products_link}" class="vertical-helper image-link img-thumbnail">{img img=$data.products_image type=m_thumb class="productImageBorder img-responsive" alt=$data.products_name|escape:"html"}</a>
                                {/if}
                            </p>
                        </div>
                        <div class="col col-xs-7 col-sm-6 col-lg-6">
                            <p class="product-name break-word bold"><a href="{$data.products_link}" target="_blank">{$data.products_name}</a></p>
                            {hook key=cart_bundle}
                            {hook key=cart_xt_options pid=$data.products_id}
                            {if $data.products_short_description}
                                <p class="product-description text-muted hidden-xs">{$data.products_short_description|strip_tags|truncate:100:'...'} [<a href="{$data.products_link}">{txt key=TEXT_MORE}</a>]</p>
                            {elseif $data.products_description}
                                <p class="product-description text-muted hidden-xs">{$data.products_description|strip_tags|truncate:100:'...'} [<a href="{$data.products_link}">{txt key=TEXT_MORE}</a>]</p>
                            {/if}
                            <ul class="label-list fixed-padding">
                                {if $data.products_information}<li><span class="badge">{$data.products_information|replace:'<tr class="contentrow1">':''|replace:'<tr class="contentrow2">':''|replace:'<td>':''|replace:'<td class="left" colspan="4">':''|replace:'</td>':''|replace:'</tr>':''}</span></li>{/if}
                                {if $data.products_model!=''}<li><span class="badge">{txt key=TEXT_PRODUCTS_MODEL} {$data.products_model}</span></li>{/if}
                                {if $data.products_weight > 0}<li><span class="badge">{include file="includes/products_weight_wrap.html" products_weight=$data.products_weight type="tpl_include"}</span></li>{/if}
                                {if $data.shipping_status}<li><span class="badge">{txt key=TEXT_SHIPPING_STATUS} {$data.shipping_status}</span></li>{/if}
                            </ul>

                            {*<!-- price info visible-xs part --- start -->*}
                            <div class="hidden-sm hidden-md hidden-lg text-left-xs">
                                <span>{txt key=TEXT_SINGLE_PRICE}:</span><br />
                                <p class="product-price">
                                        {$data.products_price.formated}
                                </p>
                                <span>{txt key=TEXT_TOTAL_PRICE}:</span><br />
                                <p class="product-price final-price">{$data.products_final_price.formated}</p>
                            </div>
                            {*<!-- / price info visible-xs part --- end -->*}

                            <div class="form-inline">
                                <div class="form-group form-group-qty">
                                    <div class="input-group">
                                        <input type="number"
                                               class="form-control"
                                               min="1"
                                               required="required"
                                               step="any"
                                               name="qty[]"
                                               autocomplete="off"
                                               id="form-qty-{$data.products_id}"
                                               value="{$data.products_quantity}"
                                               placeholder="{if $data.products_unit_name}{$data.products_unit_name}{else}{txt key=TEXT_QTY}{/if}"
                                               style="width: 6em" />
                                        <label for="form-qty-{$data.products_id}" class="input-group-addon">{if $data.products_unit_name}{$data.products_unit_name}{else}{txt key=TEXT_QTY}{/if}</label>
                                    </div>
                                </div>
                                &nbsp;
                                <button type="submit" class="btn btn-sm btn-default btn-qty-submit">
                                    <span class="glyphicon glyphicon glyphicon-refresh"></span>
                                    {txt key=BUTTON_UPDATE}
                                </button>
                                <span data-toggle="buttons">
                                    <label class="btn btn-sm btn-danger">
                                        <span class="mdi mdi-delete"></span>
                                        <span class="hidden-xs">{txt key=TEXT_REMOVE}</span>
                                        {form type=checkbox name='cart_delete[]' value=$data.products_key onchange="this.form.submit();"}
                                    </label>
                                </span>
                            </div>
                        </div>
                        <div class="col col-sm-2 hidden-xs text-right">
                            <p class="product-price">
                                    {$data.products_price.formated}
                                {if $data._cart_discount}<br />
                                <span class="price-old">{$data._original_products_price.formated}</span><br />
                                <span class="small">(-{$data._cart_discount} %)</span>
                                {/if}
                            </p>
                        </div>
                        <div class="col col-sm-2 hidden-xs text-right">
                            <p class="product-price final-price">{$data.products_final_price.formated}</p>
                        </div>
                    </div>
                {/foreach}
                {hook key=cart_total_top}
                <div class="row tfoot bold text-right">
                    <div class="col col-sm-offset-4  col-xs-7 col-sm-6">
                        {txt key=TEXT_SUB_TOTAL}
                    </div>
                    <div class="col  col-xs-5 col-sm-2">
                        {$cart_total}
                    </div>
                </div>
                {hook key=cart_total_tpl}
                {foreach name=aussen item=tax_data from=$cart_tax}
                    <div class="row tfoot text-right">
                        <div class="col col-sm-offset-4  col-xs-7 col-sm-6">
                            {txt key=TEXT_TAX} {$tax_data.tax_key}%
                            {if $shipping_link}<br /><span class="shipping-link"><a href="{$shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a></span>{/if}
                        </div>
                        <div class="col  col-xs-5 col-sm-2 text-right">
                            {$tax_data.tax_value.formated|replace:"*":""}
                        </div>
                    </div>
                {/foreach}
                {if $discount}
                    <div class="row tfoot text-right">
                        <div class="col col-sm-offset-4  col-xs-7 col-sm-6">
                            {txt key=TEXT_DISCOUNT_MADE}
                        </div>
                        <div class="col  col-xs-5 col-sm-2">
                            {$discount.formated}
                        </div>
                    </div>
                {/if}
                {if $cart_total_weight > 0}
                    <div class="row tfoot text-right">
                        <div class="col col-sm-offset-4  col-xs-7 col-sm-6">
                            {txt key=TEXT_PRODUCTS_WEIGHT}
                        </div>
                        <div class="col  col-xs-5 col-sm-2">
                            {include file="includes/products_weight_wrap.html" products_weight=$cart_total_weight label='false' type="tpl_include"}
                        </div>
                    </div>
                {/if}
                {hook key=cart_total_bottom}
            </div><!-- .div-table -->

            <br />

            <div class="row">
                <div class="col col-md-12 text-right">
                    <div class="btn-group pull-right">
                        <button type="submit" class="btn btn-default preloader">
                            <span class="glyphicon glyphicon glyphicon-refresh"></span>
                            <span>{txt key=BUTTON_UPDATE}</span>
                        </button>
                        <a class="btn btn-success preloader" href="{link page='checkout' paction='shipping' conn=SSL}">
                            {txt key=BUTTON_CHECKOUT}
                        </a>
                    </div>
                    <div class="pull-right">
                        {hook key=cart_tpl_form_paypal}
                    </div>
                    <a href="javascript:history.back();" class="btn btn-default pull-left">
                        <span class="glyphicon glyphicon-chevron-left"></span>
                        <span class="hidden-xs">{txt key=BUTTON_BACK}</span>
                    </a>
                </div>
            </div>


            <br />
            {hook key=cart_tpl_form}
            <div class="clearfix"></div>
            {form type=formend}
        {else}
            <h1>{txt key=TEXT_CART}</h1>
            {$message}
            <a href="javascript:history.back();" class="btn btn-default">
                <span class="glyphicon glyphicon-chevron-left"></span>
                {txt key=BUTTON_BACK}
            </a>
        {/if}

        {if $smarty.session.cart->type != 'virtual'}{box name=shipping_cost}{/if}
        {hook key=cart_bottom}

    </div><!-- #cart -->

