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: 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.

Need Your Help

Is a dynamic sql stored procedure a bad thing for lots of records?

sql sql-server tsql stored-procedures

I have a table with almost 800,000 records and I am currently using dynamic sql to generate the query on the back end. The front end is a search page which takes about 20 parameters and depending ...

Jacoco and Arquillian in a multi module Maven project

testing integration jboss-arquillian jacoco

I am following this article: to get test coverage for arquillian integration tests. My project is a multi module though ...

Rail 3 UJS complex forms multiple fields_for

javascript ruby forms ruby-on-rails-3 ujs

I have a milestone with many tasks. On my project show page, I want to be able to create a milestone with however many tasks the user decides to add to the milestone. How do I add more tasks using