I want to add a hover image for my product.
So the first step :
1- i've create a new attribute with code named hover_image
for all types of the products.
2- in php file catalog->product->list.phtml
i've add onmouseover
javascript function to image
tag like below
onmouseover="this.src='<?php echo $this->helper('catalog/image')->init($_product, 'hover_image')->resize(500,659)?>'"
but it's not working any suggestions ?
Best Answer
here is working code you can try this