chowpay Posted June 20, 2006 Share Posted June 20, 2006 it was posted a while back in this thread www.oscommerce.com/forums/index.php?showtopic=211617 Hoping someone from here could help me out as i am having the same probelm. I have a product image and there is a link that says "click here to enlarge" I need that link to display a different image once it is clicked. For example the product is an 1.jpg , once I click on the "click here to enlarge" I want it to show a 2.jpg. here is what I tried to modify: /head> <body onLoad="resize();"> <?php echo tep_image(DIR_WS_IMAGES2 . $products_values['products_image'], $products_values['products_name']); ?> </body> Where it use to be just DIR_WS_IMAGES .. this is the popup_image.php file .. I think this is the right file to modify if it is not please correct me. Thanks! Link to comment Share on other sites More sharing options...
chowpay Posted June 26, 2006 Author Share Posted June 26, 2006 BIG BIG thanks to cymonguk Ok so in catalog/includes/ configure.php 1. you need to define the folder that will show the enlarged images define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_IMAGES2', 'images2/'); <-- images2 is my folder where enlarged images go 2. Change this line in popup_image.php <body onLoad="resize();"> <?php echo tep_image(DIR_WS_IMAGES2 . $products_values['products_image'], $products_values['products_name']); ?> </body> Where it use to only say DIR_WS_IMAGES , change it to DIR_WS_IMAGES2 GOOD LUCK! it was posted a while back in this thread www.oscommerce.com/forums/index.php?showtopic=211617 Hoping someone from here could help me out as i am having the same probelm. I have a product image and there is a link that says "click here to enlarge" I need that link to display a different image once it is clicked. For example the product is an 1.jpg , once I click on the "click here to enlarge" I want it to show a 2.jpg. here is what I tried to modify: /head> <body onLoad="resize();"> <?php echo tep_image(DIR_WS_IMAGES2 . $products_values['products_image'], $products_values['products_name']); ?> </body> Where it use to be just DIR_WS_IMAGES .. this is the popup_image.php file .. I think this is the right file to modify if it is not please correct me. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.