paganini Posted February 24, 2003 Share Posted February 24, 2003 Is there away to the "enlarge image" feature on the cart? I just don't need it and it looks pretty unprofessional to have an "enlarge image" feature and then twhen the image pops up it is the same size as the one already shown. Thanks Cheers Todd Link to comment Share on other sites More sharing options...
Barrnone Posted February 24, 2003 Share Posted February 24, 2003 The folowing should do what you want, it should work with recent 2.2CVS and 2.2MS1. Before doing anything please backup the page or pages you are modifying. The change needs to be done in product_info.php. If you have not modified this file, then about line 24 you should have <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizab le=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=1 50') } //--></script> You can either delete this or comment it out. Then about line 90 you should have <script language="javascript"><!-- document.write('<?php echo '<a href="javascript: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']) . '">' . 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> You can either delete this and replace with the following or comment it out and put the following directly below it. <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> This should remove the a href and the "Click to Enlarge" text. Link to comment Share on other sites More sharing options...
seanpaul Posted March 12, 2003 Share Posted March 12, 2003 The above solution didnt work for me, it removed the popup image but it also removed the product image completly. I found this solution http://www.oscommerce.com/forums/viewtopic.php...t=click+enlarge The last post in this thread has the correct code Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.