Hi, I'm having trouble figuring out how to hide the quantity controls on products where there is only one available.
For example, this product has an unlimited amount available and being able to control the quantity makes sense.
Conversely, this product only has one available and I would like to hide the quantity up/down controls since it isn't needed here. I've checked the "Sold Individually" checkbox within woocommerce, but all that seems to do is hide the number and not the +/- signs next to the button.
I am very sorry for the late reply, we were not working on the weekend.
Can you please provide me with your wp-admin, we can install you a plugin to add a CSS class to those products that have only one left in stock and then remove the controls with CSS code.
We installed you a plugin called Custom Body Class and added a new class at one product that had only one left in stock, then we added the following code to Appearance > Customize > Additional CSS to remove the quantity.
.one-in-stock .quantity-nav {
display: none;
}
Now all you need to do is to go to every post that has only one left in stock and add this class ( one-in-stock ) then the quantity won't be shown in that product anymore if there is only one left.
Hi, I'm having trouble figuring out how to hide the quantity controls on products where there is only one available.
For example, this product has an unlimited amount available and being able to control the quantity makes sense.
Conversely, this product only has one available and I would like to hide the quantity up/down controls since it isn't needed here. I've checked the "Sold Individually" checkbox within woocommerce, but all that seems to do is hide the number and not the +/- signs next to the button.
Is hiding this a possibility?
Hi,
I am very sorry for the late reply, we were not working on the weekend.
Can you please provide me with your wp-admin, we can install you a plugin to add a CSS class to those products that have only one left in stock and then remove the controls with CSS code.
Feel free to ask for anything you need.
Kind Regards.
Hi,
We installed you a plugin called Custom Body Class and added a new class at one product that had only one left in stock, then we added the following code to Appearance > Customize > Additional CSS to remove the quantity.
Now all you need to do is to go to every post that has only one left in stock and add this class ( one-in-stock ) then the quantity won't be shown in that product anymore if there is only one left.
- https://prnt.sc/u10ibe
Feel free to ask for anything you need.
Kind Regards
Nice thanks, thats perfect!
You are welcome anytime, feel free to ask for anything you need
If you like our theme, please leave us a rate with 5 stars at ThemeForest, that would help us a lot.
Kind Regards,
NeuronThemes