Magento version 2.3.4
What I want to achieve:
Don't show products that are fully out of stock, but show out of stock swatches of products.
What I tried:
- Stores > Configuration > Catalog > Inventory > Stock Options > Display Out of Stock Products: Yes. This option hides out of stock products but also hides out of stock swatches.
- I found someone that tried this
So I removed $_product->isSaleable() from
This did nothing. It still hides the swatches.
Is there any other option to show the out of stock swatches?