pete2007 Posted July 24, 2008 Posted July 24, 2008 Hi, How do I enlarge my products image within the catalog products description without disturbing the store front page images? Thanks in advance!
jhande Posted July 24, 2008 Posted July 24, 2008 If I understand correctly, you want thumbnails one size, but the image on the product description page bigger? Do you also want or need the "click for larger image"? If not... Take a look at my site, link in my profile. If that is what you are after, I used the contribution - big images 1.25 by Jan Skopek 17 August 2003. I then edited my product_info.php file to show the bigger image instead of the popup. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
pete2007 Posted July 26, 2008 Author Posted July 26, 2008 If I understand correctly, you want thumbnails one size, but the image on the product description page bigger?Do you also want or need the "click for larger image"? If not... Take a look at my site, link in my profile. If that is what you are after, I used the contribution - big images 1.25 by Jan Skopek 17 August 2003. I then edited my product_info.php file to show the bigger image instead of the popup. Great, just what I'm looking for... what did you have to edit in the product_info.php file?
jhande Posted July 26, 2008 Posted July 26, 2008 It's been a long time but checking my original against my current product_info.php files I'd say the following changes. Find this (starting around line 102): <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> </table> Change to this: <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <!-- begin big image --> <?php if ($product['products_bimage'] == '') { #### echo tep_image(DIR_WS_IMAGES . $product_info['products_image']); #### } else { echo tep_image(DIR_WS_IMAGES . $product_info['products_bimage']); } ?> <!-- end big image --> </td> </tr> </table> Actually the above code might be part of the contribution. I might of only had to comment out the two lines. If you run into any problems, let me know and I'll dig through more files. ;) - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Recommended Posts
Archived
This topic is now archived and is closed to further replies.