Disable Minus Button For WooCommerce Product Quantity(1)

Share Now

Share on facebook
Share on pinterest
Share on twitter
Share on linkedin
Share on email
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);
    }

});

Nahid Mahamud

Nahid Mahamud

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