Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images


mezzodi

Recommended Posts

Posted

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?

Posted
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?

 

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

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...