добавляет теперь в насторйке "js add to cart" укажите жс код, что-то вроде такого
json=json[0];
$('.tooltip').remove();
$('#modal-cart').remove();
html = '<div id="modal-cart" class="modal fade">';
html += ' <div class="modal-dialog">';
html += ' <div class="modal-content">';
html += ' <div class="modal-header">';
html += ' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>';
html += ' </div>';
html += ' <div class="modal-body">';
html += json['success_new'];
html += ' </div>';
html += ' </div>';
html += ' </div>';
html += '</div>';
$('#content').parent().before(html);
$('#modal-cart').modal('show');
product_id = $('input[name=\'product_id\']').val();
$('#cart > button').html('<i class="fa fa-shopping-basket"></i><span id="cart-total">' + json['total_items'] + '</span>');
replace_button(product_id);
$('#cart > ul').load('index.php?route=common/cart/info ul li');
$('#cart').addClass('show');