Magento how to display a block with a small image over the actual product image by using product id -


i have table contain product ids , small images. need display image on actual product image. how can display small image in every place product image appeared, is: product view, related product, list, grid.. without changing there template.

is there programmatic way display small image everywhere without need change in every template product image display.

yes quite possible. not easy though.

there helper that

mage_catalog_helper_image 

within helper extend init function , rewrite assignment of watermark. enable in backend in system > configuration > design > watermark. use helper init function assign additional image have.

when finished, make sure clean cache , image cache. otherwise images not generated.

it still possible images wont have additional image overlay. more of template issue doesn't use helper function.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -