I would need help regarding the out of stock and color/size display function on Magento based website.
I show the items on my website, even after they went out of stock.
But the problem is that after an item goes out of stock, the color and size are not visible anymore.
And I would like to show the color and size available at the origin for the item, even when out of stock. Like on this image, I would like to show them in the red area.
So can somebody help me with this?
Thank you.
Best Answer
You can write an observer for the event
catalog_controller_product_init
.Add this to the
config.xml
file in one of your modules inside the<frontend>
tag.then create the file
[Namespace]/[Module]/Model/Observer.php
The downside of this is that the configurable product will appear as in stock in the product even if all the simple products are out of stock.