Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image Display on page, I dont want a popup


Guest

Recommended Posts

Hey guys, Im trying to find the mod that stops the popup (enlarge image), and just simply shows the image on the page itself.

 

Ive confused myself looking through all the contributions, and i know you can do it, because ive done it before

 

Can someone please point me in the right direction ?

 

 

 

Steve

Link to comment
Share on other sites

In product_info.php find the line;

 

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>'; ?>');

 

And replace it with;

 

document.write('<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>');

 

That will remove the text "Click to Enlarge" on your product information pages. It will also make the regular size image non clickable.

 

Peter

Link to comment
Share on other sites

is there a way to make this work with the big image contribution, so instead of the little thumbnail I can get a large image on the page???

 

Thanks

 

 

 

In product_info.php find the line;

 

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>'; ?>');

 

And replace it with;

 

document.write('<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>');

 

That will remove the text "Click to Enlarge" on your product information pages.  It will also make the regular size image non clickable.

 

Peter

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...