Для вывода внизу всплывающей корзины Суммы, Скидки, Eco Tax, НДС, Итого.
Одно но, при удалении товара не происходит пересчет суммы. Нужно дописать в cartpopup.js remove при удалении товара.
в файле /catalog/view/javascript/cartpopup.js вставить
$('#cartpopup .mini-cart-total').load('index.php?route=module/cart .mini-cart-total', function() { });
if (json['success']) {
$('#cart-total, .cart-total').html(json['total']);
$('#cartpopup .cart').load('index.php?route=module/cart .mini-cart-info', function() {
$('#cartpopup .mini-cart-info td.remove img').each(function(i,e){
var $this = $(this);
var product_id = $this.attr('onclick').match(/remove=(\d+(?::[\w=\+\\]+)?)/)[1];
this.onclick = function () {
$('#cart').load('index.php?route=module/cart&remove=' + product_id + ' #cart > *', function(){$('.cart-total').text($('#cart-total').text());});
$this.parent().parent().hide();
if ($('#cartpopup .mini-cart-info tr').filter(':visible').length == 0) {
$('#cartpopup').popup('hide');
}
}
});
$('#cartpopup').popup('show');
});
$('#cartpopup .mini-cart-total').load('index.php?route=module/cart .mini-cart-total', function() {
});
}
в файле /catalog/view/theme/default/template/module/cartpopup.tpl
после <div class="cart"></div>
вставить <span class="mini-cart-total"></span>
<div id="cartpopup" class="well">
<h4><i class="icon_success_27x27"></i><span id="text-added"></span> <?php echo $text_in_cart; ?></h4>
<span class="cart-header"><?php echo $text_cart_header; ?></span> <span class="cart-total"></span>
<div class="cart"></div>
<span class="mini-cart-total"></span>
<button class="btn btn-default" style="float: left" onclick="$('#cartpopup').popup('hide')"><?php echo $text_continue_shopping; ?></button>
<button class="btn btn-default" style="float: right" onclick="location='index.php?route=checkout/simplecheckout'"><?php echo $text_view_cart_n_checkout; ?></button>
</div>