Hi,
Please go to Admin -> Theme Options -> General Options -> Analytic code -> Paste given below code and update options:-
<script>
jQuery(document).on(‘click’, ‘.single-tribe_events .qty-plus’, function(e) {
e.preventDefault();
var quantityInput = jQuery(this).parents(‘.quantity’).find(‘input.qty’),
newValue = parseInt(quantityInput.val(), 10) + 1,
maxValue = quantityInput.data(‘max’) ? parseInt(quantityInput.data(‘min’), 10) : 9999999999;
if ( newValue <= maxValue ) {
quantityInput.val(newValue);
quantityInput.change();
}
});
// Decrease
jQuery(document).on(‘click’, ‘.single-tribe_events .qty-minus’, function(e) {
e.preventDefault();
var quantityInput = jQuery(this).parents(‘.quantity’).find(‘input.qty’),
newValue = parseInt(quantityInput.val(), 10) – 1,
minValue = quantityInput.data(‘min’) ? parseInt(quantityInput.data(‘min’), 10) : 1;
if ( newValue >= minValue ) {
quantityInput.val(newValue);
quantityInput.change();
}
});
</script>
Thanks
Mohammad