Currently, I had some configurable problem that all its simple are out of stock. However, the product is still visible in the category and search results. In "Store > Configuration > Catalog > Inventory" I had this configuration:
- Display Out of Stock Products > No
- Only X left Threshold > 0
- Display Products Availability in Stock on Storefront > Yes
- Manage Stock > Yes
- Backorders > No Backorders
- Out-of-Stock Threshold > 0
How can I hide the configurable products when all its simple are out of stock?
Additionally, if one simple product is out of stock, the color swatch is still visible as a disabled option with on red line crossing it. Is there any option to hide the swatch when the simple is out of stock?