replace the following line of code in ..../template/catalog/view/media.phtml
<li>
<a href="#" onclick="popWin(’<?php echo $this->getGalleryUrl($_image) ?>’, ‘gallery’, ‘width=200,height=200,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes’); return false;” title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>” width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>” /></a>
</li>
to
<li>
<a href="#" onclick="popWin(’<?php echo $this->getGalleryUrl($_image) ?>’, ‘gallery’, ‘width=200,height=200,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes’); return false;” title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>” width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>” /></a>
</li>
to
<li>
<a href="[removed]void(0)" onclick=’document.getElementById("image").setAttribute("src","<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(256); ?>")’ title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>” width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>” /></a>
</li>
<a href="[removed]void(0)" onclick=’document.getElementById("image").setAttribute("src","<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(256); ?>")’ title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>” width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>” /></a>
</li>
and enjoy....
No comments:
Post a Comment