markyboy Posted January 25, 2006 Posted January 25, 2006 Hi, In my store I would like to have my image that is displayed within product_info.php a lot larger so that I can do without the Click to enlarge. But I would like the thumbnails to remain the same size. I have looked in admin nut to no avail. Can you tell me which .php tp amend many regards markyboy
draxion Posted January 25, 2006 Posted January 25, 2006 you need to modify the the product_info.php file. Look for the following code <script language="javascript"><!-- document.write('<?php echo '<a href="java script: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>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . 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 . '</a>'; ?> </noscript> You can remove the javascript stuff to get rid of the popup option. Look at the following thread for info on the image sizing thing. http://www.oscommerce.com/forums/index.php?showtopic=191001&hl= Good luck. Shayne
markyboy Posted January 25, 2006 Author Posted January 25, 2006 many thanks for the reply but because I am a newbie to php I am unsure what piece of code to amend. I had a look at your contribution and pasted the code over this <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . 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 . '</a>'; ?> </noscript> and left this <script language="javascript"><!-- document.write('<?php echo '<a href="java script: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>'; ?>'); //--></script> <noscript> before it went onto update the site and the descriptive text of my product_info.php disappeared and images were left at normal thumbnail size. So in a way I am in a dilema on how to get this to work regards markyboy
Recommended Posts
Archived
This topic is now archived and is closed to further replies.