к сожалению такого участка нет
есть такой участок
<script type="text/javascript"><!--
$('#button-cart2').on('click', function() {
$("input#quantity_wanted").val($("input#quantity_wanted2").val());
{% for option in options %}
{% if (option['type'] == 'radio') %}
$("#input-option{{ option['product_option_id'] }}-2 .radio").each(function () {
if($(this).find("input").is(":checked")) {
var index = $(this).index();
$("#input-option{{ option['product_option_id'] }} .radio").eq(index).find("label").click();
}
});
{% endif %}
{% if (option['type'] == 'checkbox') %}
$("#input-option{{ option['product_option_id'] }}-2 .checkbox").each(function () {
if($(this).find("input").is(":checked")) {
var index = $(this).index();
$("#input-option{{ option['product_option_id'] }} .checkbox").eq(index).find('input').prop("checked", true);
} else {
var index = $(this).index();
$("#input-option{{ option['product_option_id'] }} .checkbox").eq(index).find('input').prop("checked", false);
}
});
{% endif %}
{% if (option['type'] == 'select') %}
$("#input-option{{ option['product_option_id'] }}").val($("#input-option{{ option['product_option_id'] }}-2").val());
{% endif %}
{% endfor %}
$("#button-cart").click();
});
$('#button-cart').on('click', function() {
$.ajax({
url: 'index.php?route=checkout/cart/add',
type: 'post',
data: $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'),
dataType: 'json',
beforeSend: function() {
$('#product #button-cart').val($('#product #button-cart').attr("data-loading-text"));
},
complete: function() {
$('#product #button-cart').val($('#product #button-cart').attr("data-original-text"));
},
success: function(json) {
$('.alert, .text-danger').remove();
$('.form-group').removeClass('has-error');
if (json['error']) {
if (json['error']['option']) {
for (i in json['error']['option']) {
var element = $('#input-option' + i.replace('_', '-'));
if (element.parent().hasClass('input-group')) {
element.parent().after('<div class="text-danger">' + json['error']['option'][i] + '</div>');
} else {
element.after('<div class="text-danger">' + json['error']['option'][i] + '</div>');
}
}
}
if (json['error']['recurring']) {
$('select[name=\'recurring_id\']').after('<div class="text-danger">' + json['error']['recurring'] + '</div>');
}
// Highlight any found errors
$('.text-danger').parent().addClass('has-error');
}
if (json['success']) {
var product_id = $('#product input[name="product_id"]').val();
$('#modalAddToCartProduct').modal('show');
$('#modalAddToCartProduct .tt-img img').attr('src', $(".product-info").find("#image").attr("src"));
$('#modalAddToCartProduct .tt-title').html($(".product-info").find("h1").html());
$('#modalAddToCartProduct .tt-product-total .tt-price').html($(".product-info").find(".price .price-new").html());
$('#modalAddToCartProduct .tt-qty span').html($('.product-info input[name="quantity"]').val());
$('#modalAddToCartProduct .tt-cart-total .tt-price').html(' ').load('index.php?route=common/cart/info #total_amount_ajax');
$('#modalAddToCartProduct .tt-cart-total .text-total').text($('#modalAddToCartProduct .tt-cart-total .text-total').text().replace(/[0-9]+/, parseInt($('#total_count_ajax').html())+parseInt($('.product-info input[name="quantity"]').val())));
$('#cart_block #cart_content').load('index.php?route=common/cart/info #cart_content_ajax');
$('#cart_block #total_count_ajax, .open-cart .cart-count').load('index.php?route=common/cart/info #total_count_ajax');
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
//--></script>
и что тут надо изменить?