1

Steps to reproduce

Install Magento 2.2.X CE Sample Data Admin > Stores > Configuration > Catalog > Inventory > Stock Options > Display Out of Stock Products = Yes.

CLI php bin/magento indexer:reindex

Admin > Products > Catalog > Create configurable product with 1 attribute. Set either Quantity = 0 or Stock Status = Out of Stock.

Expected result

Frontend product should display with all Simple products part of Configurable product and should display with class disabled (red strike through) for out of stock .

Actual result

Frontend product not displayed all.

0

This is a Magento bug, file an issue if you haven't done that already. Current workaround is Keeping stock status as In stock and use a module to disable and replace text on Add to Cart button for the configurable product ( i.e replace with "Out of stock" ).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.