I have to make something like this:
Change the color of "Availability: In stock " depending the quantity from the stock?
but I've configurable products.
What's the way? Thanks
I have to make something like this:
Change the color of "Availability: In stock " depending the quantity from the stock?
but I've configurable products.
What's the way? Thanks
You could override Mage_Catalog_Block_Product_View_Type_Configurable::getJsonConfig()
to include the qtys of the associated products, then extend the JavaScript function Product.reloadPrice() to also update the CSS class of the availability element based on the respective qty.