Disable Minus Button For WooCommerce Product Quantity(1)

Share Now

if ($('.qty').val() == 1) {
    $(".minus").attr("disabled", true);
}

$('.quantity').on('click', function() {

    if ($('.qty').val() == 1) {
        $(".minus").attr("disabled", true);
    } else {
        $(".minus").attr("disabled", false);
    }

});

Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert