Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

When products are out of stocks it shows the automatically watermark on image that is “SOLD”
 
shahmir
Jr. Member
 
Total Posts:  1
Joined:  2013-06-10
 

How could i do When products are out of stocks than it shows the automatically watermark on image that is “SOLD”

 
Magento Community Magento Community
Magento Community
Magento Community
 
guiltyvictim
Member
 
Total Posts:  71
Joined:  2010-06-03
 

If you haven’t got php development experience, you can do it via some clever css, basically turning the <p class="availability out-of-stock"> block into a watermark and hover it over the image.

If you have php development experience, edit the app\design\frontend\[package name]\[theme name]\template\catalog\product\list.phtml file.

You should find the condition in the “Out of Stock” bit:

if($_product->isSaleable())

Add your php code to either add class to the <img> tag or create a new watermark <img> beneath. skin it with your css.

Make sure you amend the code for both the grid layout AND list layout section of the file.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top