Home › Forums › Themes Support › Gecko › How to hide the"out of stock" badge for main product and unavailable variations?
Tagged: out of stock, variables
- This topic has 5 replies, 2 voices, and was last updated 6 years, 4 months ago by Harry.
-
AuthorPosts
-
-
May 25, 2018 at 8:50 pm #20873
Hi;
The stock values for items are updated with xml importing plug-in (wp all import) in 5 minute intervals. The main image containing variations display always an “out of stock” badge, even there are available variations.
We want to do two things:
- Hide the “out of stock” on the main items photo
- Hide the “out of stock” variations on the product listing pages (not on the product detail page)
How shall we do this?
Thank you already!
-
May 26, 2018 at 12:29 pm #20904
Hi Tekir,
Please go to WooCommerce > Settings > Inventory and follow this screenshot http://take.ms/5hcgE
and add below code to JanStudio > Theme Option > General Layout > Custom CSS
.outofstock .sold-out {display: none;}
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 11, 2018 at 5:18 pm #22528
Hi Harry;
The “out of stock” badge is no more on the parent product, it’s fine.
But now, we haven’t have any badge on the chosen and out of stock product, either. How should we fix it?
(To make things clear: if some of the variables are available but some are not; we want the parent to stay without badge, but want the particular variable’s images have that “out of stock” badge. How is this possible?)
Best regards.
-
July 11, 2018 at 8:21 pm #22541
Hi,
Could you send me the link of product have variation out of stock.
I will check and help you solve.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 12, 2018 at 3:40 pm #22560
Hello;
https://kuzo.com.tr/urun/marble-bebek-beden-kanguru/
here, the first and third form left are out of stock.
Hope you find a way. Looking to hear from you; thank you!
-
July 12, 2018 at 5:45 pm #22569
Hi,
Please change code to
.product-type-variable .outofstock .sold-out {display: none;}
It can’t show badge on child product.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.