Magento 2 - Show swatches of simple products (out of stock) in configurable product

by Matias Caravante   Last Updated January 12, 2018 21:09 PM

Magento versión: 2.1.7

I have a configurable product with ALL its simple products without stock. I need to show in the configurable product the swatches of size / color (disabled) of their associated simple products.

Is this possible?

I already developed a modification and if at least 1 simple product has stock it shows all the swatches (available and not available). The problem is if there's no stock of any simple product of configurable.



Related Questions





Change order of configurable options programatically

Updated September 26, 2017 20:09 PM



Cache file /home/queryxchang/questarter.com/apps/frontend/config/../cache/-q-magento-2-show-swatches-of-simple-products-out-of-stock-in-configurable-product-10-209316-html could not be written