Guest Posted March 31, 2003 Share Posted March 31, 2003 Hi! How does one put an image instead of having the words "Click to Enlarge" in the product description page? Link to comment Share on other sites More sharing options...
Ajeh Posted March 31, 2003 Share Posted March 31, 2003 Edit the product_info.php file and find the Click to enlarge located in two places and replace with: tep_image(DIR_WS_IMAGES . 'filename_here', 'alt_tag_here') Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2003 Share Posted March 31, 2003 do i replace . TEXT_CLICK_TO_ENLARGE with this? is that what you mean? <----sort of a newbie...:) Link to comment Share on other sites More sharing options...
Ajeh Posted March 31, 2003 Share Posted March 31, 2003 Right that is currently the text that you see. Should be in two places. One for java and one for regular. Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2003 Share Posted March 31, 2003 for some reason...the image doesnt show up....:( and there's no x box that means it doesnt exist.... it just doesnt show up and there's no errors on the page or anything.... any ideas why? Link to comment Share on other sites More sharing options...
Ajeh Posted March 31, 2003 Share Posted March 31, 2003 Well ... not really ... I do not know what your change was to the product_info.php file and my crystal ball is on the blink ... :shock: Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2003 Share Posted March 31, 2003 oh...lol..... http://www.greekretreat.com/default.php Link to comment Share on other sites More sharing options...
Ajeh Posted March 31, 2003 Share Posted March 31, 2003 I see images ... where do you not see images? A URL is handy. Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2003 Share Posted March 31, 2003 http://www.greekretreat.com/product_info.p.../products_id/75 there is not image for Click to Enlarge showing up...click to enlarge is still there... :( Link to comment Share on other sites More sharing options...
Ajeh Posted March 31, 2003 Share Posted March 31, 2003 This includes both the text and the image for the two sections. Edit it to match your settings that you want: <tr> <td align="center" class="smallText"> <script language="javascript"><!-- 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 . tep_image(DIR_WS_IMAGES . 'click_to_enlarge.gif') . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . tep_image(DIR_WS_IMAGES . 'click_to_enlarge.gif') . '</a>'; ?> </noscript> </td> </tr> Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2003 Share Posted March 31, 2003 but it still has the text Click to Enlarge and no image..... :( http://www.greekretreat.com/product_info.p.../products_id/42 Link to comment Share on other sites More sharing options...
Ajeh Posted March 31, 2003 Share Posted March 31, 2003 You will need to load an image in your /images folder ... I called mine click_to_enlarge.gif You will then need to edit it if you want the text gone. The: TEXT_CLICK_TO_ENLARGE . adds the text. I left both the text and the image in there so you could choose. Example: http://www.8thoctave.com/osc_freecall/prod...p?products_id=8 Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2003 Share Posted March 31, 2003 I got it! THank you!! Link to comment Share on other sites More sharing options...
Ajeh Posted March 31, 2003 Share Posted March 31, 2003 Sure thing ... sometimes you just have to play a bit with the code to really see what is there and how to manipulate it a bit. :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.