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

How to intercept proceed() in another AspectJ aspect?

aop aspectj pointcut

I have a situation as follows: I have a LoggingAspect with several pointcuts matching specific method executions in my main application. The corresponding advice bodies basically all look similar,

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.