<script type="text/javascript"><!--
$('#button-cart-fast').bind('click', function() {
$.ajax({
url: 'index.php?route=checkout/cart/add',
type: 'post',
data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
dataType: 'json',
success: function(json) {
$('.success, .warning, .attention, information, .error').remove();
if (json['error']) {
if (json['error']['option']) {
for (i in json['error']['option']) {
$('#option-' + i).after('<span class="error">' + json['error']['option'][i] + '</span>');
}
}
}
if (json['success']) {
window.location = "index.php?route=checkout/simplecheckout&group=1";
}
}
});
});
//--></script>
Здравствуйте. Добавил вот таким способом "быстрый заказ". Не подскажите как реализовать открытие формы заказа во всплывающем окне? Спасибо