Enable Stock but hide it's display
-
Hello,
As the topic says, we want to disable stock number display even though we wish to enable “manage stock” and “stock quantity”.
This is because we are using some third party countdown timer which also shows the stock number. So we do not want to display same information twice. Hence need to disable the theme display of stocks.
Let me know how it can be done.
In summary: I need to hide this display (See screenshot)
Hello,
Please disable all the third parties plugins not related to the theme. I cannot enter a product https://gyazo.com/456118de646f51c7c60813f26a5e1f4d Your site trying to search something though I did not press search. It tries on its own.
Best Reagards
Please check now. The page should load correctly. And help us solve the original issue. Thanks
Hello,
Please add this code to the Theme Settings > Custom CSS:
.product-image-summary .out-of-stock,
.product-image-summary .in-stock{
display:none;
}
Best Regards
Hello,
I have added that code to the global CSS in Theme settings>Global CSS but the stock number still displays.
Hello,
I have tested the code in my testing environment and it works. Please provide your valid access.
Best Regards
Access given below.
As you are already aware that this is a test website. let me know all the changes you make here. So I can replicate on the original website.
Hello,
I have added above-provided code and stock is not visible, check this product Vornex Minimalist Wooden Coffee Table
http://prntscr.com/l4kyw1
Please clarify your purpose perhaps I have misunderstood you.
Best reagards
Where have you added that code? Is it specific to that product only? For example, check another product – (Link)
The stock number is displayed.
Hello,
I have also added this code for variation product:
.variations_form .woocommerce-variation-availability .out-of-stock,
.variations_form .woocommerce-variation-availability .stock {
display:none;
}
Best Regards
Yes, it works, but I wish to display “out of stock” if the product is marked out of stock. It should not display “in stock” as said. So the correct code would be this?
.product-image-summary .in-stock{
display:none;
}
.variations_form .woocommerce-variation-availability .stock {
display:none;
}
Hello,
Yes, delete the lines with “out of stock” class
Best Regards
The topic ‘Enable Stock but hide it's display’ is closed to new replies.