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
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:
<?php
$_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(500).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
echo '<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:
rel="ja-colorbox"
, I hope it helps !