mezzodi Posted January 16, 2005 Posted January 16, 2005 Images on the product listing page upload ok and display on the product listing pages but when a user clicks on an image to go to the individual product page there are no images. I searched the threads but could not find any solutions. How can I the product image on the individual product page?
Guest Posted January 18, 2005 Posted January 18, 2005 Images on the product listing page upload ok and display on the product listing pages but when a user clicks on an image to go to the individual product page there are no images. I searched the threads but could not find any solutions. How can I the product image on the individual product page? <{POST_SNAPBACK}> i am having the exact same problem, and i also haven't found other posts on the forum to resolve the issue. any ideas would be very appreciated, thanks, eva
Guest Posted January 19, 2005 Posted January 19, 2005 hallelujah, i found a fix. the problem is in the code in product_info under catalog. there are noscript tags around the portion of the code that references the product image. if you just remove those tags then voila - the image appears. there were two different links around the image - plus the image as a link (two going to a popup image and the other opening into a page size frame of the image). i didn't like the image opening into such a huge frame and all the links, so i edited some of the code out to just make the picture a link to a popup frame. here's what i did. find this section in product_info: <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '\\\')">' . tep_image(DIR_WS_ITM_IMG . $product_info_values['products_image'], addslashes($product_info_values['products_name']), ITM_IMAGE_WIDTH, ITM_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_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> and replace it with: <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '\\\')">' . 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"') . '</a>'; ?>'); //--></script> hope that helps
Recommended Posts
Archived
This topic is now archived and is closed to further replies.