Guest Posted May 9, 2003 Posted May 9, 2003 Hi, I'm trying to change the php code (but I do not understand much of php...), to do this: When a user clicks the image to open the popup window (zoom), to use another directory. for example: NOW: .../catalog/images/brand/1.jpg I would like the popup window open .../catalog/images/second/brand/1.jpg I just want to add that little piece of text "second/" in the url... With this, I would get a different image, with this little change. Oh, I have been looking to the contributions and there are even with 3 images... ...but, if my idea is possible to do, great! Thank you. Afonso
Cerberus Posted May 10, 2003 Posted May 10, 2003 Edit the popup_image.php file and change the line: echo tep_image(DIR_WS_IMAGES . $products_values['products_largeimage'], $products_values['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); to : echo tep_image(DIR_WS_IMAGES . "second/" . $products_values['products_largeimage'], $products_values['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
Guest Posted May 10, 2003 Posted May 10, 2003 PERFECT! PERFECT! PERFECT! Thank you. I had been around a bit to make it work, but with your confirmation, I got it why didn't work: because i didn't had the image in the directory! Thank you. Afonso
jaysin Posted June 13, 2003 Posted June 13, 2003 Hi cerberus, Which contribution did you used for basck button loks like its working perfectly on your website.
Cerberus Posted June 13, 2003 Posted June 13, 2003 Hi jaysin, I didn't use a contribution, I just added a button and put some javascript in to make it go back one page: <a href=java script:history.back()><?php echo tep_image_button('button_back.gif', IMAGE_BACK) ?></a> :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.