Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about programming within the scope defined in the help center. Closed 7 hours ago. Improve this question I have the following problem on my woocommerce site. I have hidden the out-of-stock products from the woocommerce settings. Instead of showing the price range of the variations of the product from my theme settings (xstore), I activated the setting that will only show the lowest price. Now, if a product with any variation is out of stock, the price of that product appears as 0 $ on my home page. How do I prevent this situation? I hope I was able to explain. For example, the product is in stock and the variation prices are as follows Blue Color 100 $ Red Color: 150 $ Green Color: 200 $ There is no problem in this way, the product price appears as 100$ on my home page. But if the “Green Color” is out of stock, the price appears as 0$ on my homepage. Thank you in advance. I haven't found a solution despite a lot of research.