Hi All,
I have been using this mod, with ih2 happily for ages and they are all up to date.
I have just tried to integrate the 'attribute replaces main image' addon and am trying to get zencart to work in the same way it does with additional images.
I think the file i need to alter is below where i have tried to copy the code from tpl_modules_main_product_image.php. I think my problem is with the java script. If i dont include the documment.write script part it returns the larger image fine. If i add as below (and in tpl_modules_main_product_image.php) The image is not there (or the ability to clisk it obviously)
Code in file
Code:... <?php echo '<script language="javascript" type="text/javascript"><!-- document.write(\'<a href="' . zen_lightbox('images/'.$attributes_image, $alt, LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" >' . $image . '<br /><span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span></a>\')//--></script>'; ?> ...
HTML result
But no actual code to make it happenHTML Code:<script language="javascript" type="text/javascript"><!-- document.write('<a href="images/attributes/PMXA-67RS.png" rel="lightbox[gallery]" ><img src="bmz_cache/4/4f1f33407f5f2208814e35797be58f8f.image.145x200.png" alt="" width="145" height="200" /><br /><span class="imgLink"><img src="images/bigger_picture.jpg" alt="larger image" title=" larger image " width="100" height="100" /></span></a>')//--></script>
Any help is appreciated![]()


Reply With Quote
