Вопрос в заголовке, как убрать модальное окошко подтверждения при удалении товара из списка на странице оформления заказа?
Отключить всплывающее окно при удалении товаров из корзины
Started by
dalwebmaster
, Apr 08 2016 10:19
1 reply to this topic
#2
Posted 08 April 2016 - 16:32
здравствуйте dalwebmaster, попробуйте сделать следующее.
Откройте JS файл:
\media\zoo\applications\jbuniversal\assets\js\cart\cart.js
Найдите этот кусок кода:
$this.confirm($this.options.text_remove_item, function () {
$this.ajax({
'url' : $this.options.url_delete,
'target' : $tableRow,
'data' : {
'key': $tableRow.data('key')
},
'success': function (data) {
if (itemsCount != 1) {
$this.updatePrices(data.cart);
$this.reloadModule();
} else {
window.location.reload();
}
$tableRow.remove();
},
'error' : function (error) {
$this.alert(error);
}
});
});
И замените на:
$this.ajax({
'url' : $this.options.url_delete,
'target' : $tableRow,
'data' : {
'key': $tableRow.data('key')
},
'success': function (data) {
if (itemsCount != 1) {
$this.updatePrices(data.cart);
$this.reloadModule();
} else {
window.location.reload();
}
$tableRow.remove();
},
'error' : function (error) {
$this.alert(error);
}
});











