Product image light box always duplicates one of the images, also on the demo site!

Clicking on the product image on the Product Detail page, the enlarged image appears in a lightbox, but the lightbox always duplicates one of the images, i.e. when there is only one product image, it says that there are 2 images, and also duplicates the image! This is so also on the JM Wall demo site. It is evidently a bug.

Could you tell me how to fix this please.

Thank you

1 answer

Profile photo of Sherlock 0.00 $tone March 11, 2013

Hi susanp,

Actually the light-box also included the big image on the left side so you might think it’s duplicated, if you want to remove this duplicate just open the file of app\design\frontend\default\jm_walltemplate\catal og\product\view\media.phtml at about line number 48 you would see this code

PHP Code:

'<img id="image" src="'.$this->helper('catalog/image')->init($_product'image')->resize(500).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
'<a title="'.$this->htmlEscape($this->getImageLabel()).'"  rel="ja-colorbox"  href="'.$this->helper('catalog/image')->init($_product'image').'" >'.$_helper->productAttribute($_product$_img'image').'</a>';

Here you remove the text of
HTML Code:


, I hope it helps !


Please login or Register to Submit Answer

Written By