7

I'd like to add a watermark to each small image (but only in the category listing page) that is based on the manufacturer attribute. I don't want to alter the small image for that product on other pages.

I've thought about setting a watermark for small images and overriding the image file, but that will add the watermark to all small images for that product (which might be shown on other pages).

Is there a somewhat easy way to do this without creating a custom module?

1
  • You may add a layer using CSS, it easier to add watermark.
    – HoangHieu
    Commented Feb 27, 2020 at 20:20

1 Answer 1

1

There is a method for this, you just have to edit the category template, so that your image rendering adds a watermark:

\Mage_Catalog_Model_Product_Image::setWatermark
2
  • 1
    Stupid people, please start adding comments if you have a problem with post, so I can fix it and learn! Commented Jun 26, 2016 at 9:46
  • nice comment, i liked it...... Commented Jan 3, 2017 at 5:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.