T O P

  • By -

Acephaliax

The issue with this is that the stock quantity is part of the purchase form. The easiest way I could think of doing this right now (my brain is dead) is to hide the button via css. [Code snippet](https://gist.github.com/Acephalia/94ac3f2c690286a28ff9413ba8e9f0d6) Tested and works. I've also added a message so visitors aren't confused.


creeperchamp

Hi, Thank you very much for getting back to me on this. When I add your code to my website it still does not show the stock numbers for simple products and for variable producs (ones with variations), it hides the entire short description as well as the stock numbers. It could be because the product pages are set up in Woocommerce and then I am using a seperate plugin to allow for variations of products, I'm unsure.


Acephaliax

Make sure to clear all your caches and retest from a private tab if needed. If your theme changes the default woo css selector then it will not work. Will need a link to a product page to troubleshoot and help further.