Mookie_Jam Posted October 19, 2005 Share Posted October 19, 2005 I try to make the pics in the product info bigger, but changin the sice og the images in the admin panel, it changes also the pics when they are listed as new products, or also bought,..... Is there anyway I can make the pic in product info bigger, but keeping the other their actual size? Thanks!! Link to comment Share on other sites More sharing options...
Wendy James Posted October 19, 2005 Share Posted October 19, 2005 You can either install one of many contributions, or you can edit your product_info.php If you want to just edit the file, look for the javascript code and the non javascript code calling for the image and just change <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 . '</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> to something like <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']), '200', '200', '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'], '200', '200', 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> changing the 200 to whatever it is you want the image size to be. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Mookie_Jam Posted October 20, 2005 Author Share Posted October 20, 2005 You can either install one of many contributions, or you can edit your product_info.php I searched but didn't find any contrib that did this.. I would rather it to be automatished than having to chage the code each time Link to comment Share on other sites More sharing options...
mtechama Posted October 21, 2005 Share Posted October 21, 2005 I want the Image in the middle and the discription underneath the image How can I do that? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.