sheikyerbouti Posted October 20, 2002 Posted October 20, 2002 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
Mooby Posted October 20, 2002 Posted October 20, 2002 i did the same thing a wekk ago and talked someone else through it about 2 days ago. The way i approached it to install the 3 image mod (sm,med,lg image mod [summit like that]) then remove the pop up link in the product config so that the large image was never used. If you install the 3 image mod then do the details described below that should sort it out. It will require you uploading 2 images, 1 icon and 1 larger image but it sorts out your problem hth Matt ------------------------------------- I removed this from product_info.php ----------------------------------------------------------------- <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_mediumimage'], addslashes($product_info_values['products_name']), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); file://--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info_values['products_mediumimage']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_mediumimage'], $product_info_values['products_name'], MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> ----------------------------------------------------------------- and replaced it with ----------------------------------------------------------------- echo tep_image(DIR_WS_IMAGES . $products_values['products_mediumimage'], $products_values['products_name'], MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT); ----------------------------------------------------------------- The actual 3 images mod is missing a bit of the code to get the real image in product_info.php look for this line: ----------------------------------------------------------------- $product_info = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.language_id = '" . $languages_id . "'"); ----------------------------------------------------------------- and add p.products_mediumimage into the query so that it gets the name of the medium image as well. This will remove the pop up image from the site so that you have the small category image, then when you click on a product you get shown a larger image (the medium image). Just because it is called medium it doesnt mean it is smaller than the large. The images you upload and dimensions you set in the admin section will define how large the image is. In the admin section there is still an option to upload a large image but just ignore it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.