This is a discussion on Click to Enlarge? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; When i click on the link under the product photo that says "Click to Enlarge" it launches a ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| When i click on the link under the product photo that says "Click to Enlarge" it launches a new window but shows the product in the same size as the original. I think i heard about a contribution which would make it possible to actually view enlarged images, but what i really want to do is just remove the "Click to Enlarge" link altogether. I don't recall seeing anything about this. Can someone help me with this simple (i hope) subtraction from the code? Thanks, pete |
|
#2
| ||||
| ||||
| It is pretty easy: In the file product_info.php go to roughly line 102-104. See below: <tr> <td align="center" class="smallText">]<a href="javascript </tr> Delete the text that I have highlighted above. |
|
#3
| ||||
| ||||
| Thank you very much for responding to ALL my questions. Have a great day. This site and the Guide both ROCK!!! -pete |
|
#4
| ||||
| ||||
| Actually, my code is slightly different than what you show. Could you help me figure out which exact pieces i delete from the following? Thanks again. -pete <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="javascript //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> |
|
#5
| |||
| |||
| I dont have your actual code, but I think this will work. See the sections marked in bold and remove them. I havent actually tested this, so make sure to backup your original file. Good luck... <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="javascript //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> |
|
#6
| ||||
| ||||
| well, that's close. i finally got it to work and here's the code. you were right on the first part, but you still need to remove the anchor code from the second section. -pete <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>'); //--></script> <noscript> <?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </noscript> </td> </tr> |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 'Click to Enlarge' is missing? | danhosts | osCMax v2 Installation issues | 1 | 10-04-2006 03:37 AM |
| Click To Enlarge Image | heaven | osCommerce 2.2 Installation Help | 1 | 02-07-2006 12:42 PM |
| click to enlarge | crujones | osCMax v1.7 Discussion | 7 | 04-25-2004 02:37 PM |
| Click to Enlarge | msmull | osCMax v1.7 Discussion | 1 | 03-22-2004 09:19 AM |
| Why does it say click to enlarge when it doesn't? | Anonymous | osCommerce 2.2 Modification Help | 1 | 11-22-2002 06:25 PM |