Magento – Magento – How to remove color swatch if the product is disabled

color-swatchesmagento-1.9

For Example,There is a product with attribute color – Black,Blue,Red. If the associated product with color Black is disabled, it should not display black color swatch.
But it displays color swatch(although disabled). How to remove it?
Using – Magento default ColorSwatches and theme rwd.

Best Answer

Check in System > configuration > inventory > Stock options > Display Out of Stock Products > No