Reset Seat Quantity
-
Hello,
Currently customer can make order and checkout extra service without booking any seat, i need to avoid that.
I already hide extra service field when seat quantity below 1.if (total_seat > 0)
{
$(“.wbtm_heading”).html(‘Extra Service‘);
$(“.mage_input_group”).removeClass(‘hide’);
$(“.extra-qty-box”).removeClass(‘hide’);
} else {
$(“.mage_input_group”).addClass(‘hide’);
$(“.extra-qty-box”).addClass(‘hide’);
$(“.extra-qty-box”).val(‘0’);
$(“.wbtm_heading”).html(‘Extra Service (add seat quantity first)’);
}But when page reloaded or customer view other bus / boat detail by click toggle, seat quantity mot changed, so extra service field shown.
Is there any javascript function available to reset seat quantity to zero? I need that to adding on event when customer view another bus / boat. Maybe something like bookingSeatReset();
I have observe bus_script.js file but still not have idea.
Thank you
- The topic ‘Reset Seat Quantity’ is closed to new replies.