cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable "Add to Cart" and Quantity button if product is out of Stock?

How to disable "Add to Cart" and Quantity button if product is out of Stock?

I want to disable add to cart and qty option if product is out of stock, but i also want to show price and swatches of the products and the swatches should be clickable and price should be changeable according to swatches I also want to show "add to cart and qnty option" but they should not be clickable...1.png

in this case when product is out of stock, all options are not visible, swatches and price is not accessible , i want that price and swatches should be accessible and visible but quantity and add to cart option should be disable. Any idea how to do this? Thanks in advance.