function incrementQuantityValue(event) {
event.preventDefault();
event.stopPropagation();
var input = $(this).siblings('.qty-input');
var value = parseInt(input.val());
if (isNaN(value)) {
input.val(1);
return;
}
value++;
input.val(value);
input.trigger('input');
}
function decrementQuantityValue(event) {
event.preventDefault();
event.stopPropagation();
var input = $(this).siblings('.qty-input');
var value = parseInt(input.val());
if (isNaN(value)) {
input.val(1);
return;
}
if (value <= 1) {
return;
}
value--;
input.val(value);
input.trigger('input');
}
function handlePurchaseQuantityValue() {
$(document).on('click', '.add-to-cart .increase, .cart .increase', incrementQuantityValue);
$(document).on('click', '.add-to-cart .decrease, .cart .decrease', decrementQuantityValue);
}
Hello,
sorry for the delay, this issue is now moved to the support ticket system.
Regards