Magento E-Commerce - Add Out of Stock Watermark for items out of stock
I'm using the Magento E-Commerce system.
Is there a way for me to set a "OUT OF STOCK" watermark on the product images when a product becomes out of stock?
thanks in advance!
I would like to suggest an alternate solution. Instead of generating and displaying a new image with the watermark, perhaps you can add an element above the image (css z-index) that says "Out of Stock" when the product is out of stock. Check out how we did this for products on sale (this link has a product on sale as of the time of this post: http://www.abesmarket.com/store/karmaorganicspa). The code that @Showket wrote $_product->getStockItem()->getIsInStock() is good for determining if a product is in stock. If the product is not in stock, I would display a new div which is positioned on top of the product image.