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)
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?)