ANRON Posted March 11, 2003 Share Posted March 11, 2003 I have a problem with the size of the pictures. I have tried changing the sizes in the admin menu. But it does not solve my problem. I want the picture of the product that is actually next to the product description to be twice as big as it is currently. I can double the image size but that also changes the size of all the images in 'specials' and 'reviews'. Is there a way to change the size of the images with product descriptions in product_info.php only and not changing the others? I believe the variable that applies to these images are 'Small Image Width' and 'Small Image height'. IF I replace it to maybe "big image width "and how can i make it width="160" and heigt="120" how ? is there a way around my problem ? anyone else have this ? i had been search more than 100 posts ..please help me about this friendly everyone around th world!! Link to comment Share on other sites More sharing options...
radders Posted March 11, 2003 Share Posted March 11, 2003 Would this help? http://www.oscommerce.com/community/contri...ons,695/page,11 Link to comment Share on other sites More sharing options...
companyguy Posted March 14, 2003 Share Posted March 14, 2003 i have been looking for something like this as well. thanks. :) Link to comment Share on other sites More sharing options...
bubba30 Posted March 15, 2003 Share Posted March 15, 2003 Goto your admin catalog/product_info.php and make a quick change to the code And you can make it anysize you like. Easy --- find this in you _product_info.php code almost half way down. <?php echo "<a href="javascript:popupImages($products_id)">"; echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], "test",SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . "</a>";?> </td></tr><tr><td align=center><? echo "<a href="javascript:popupImages($products_id)">"; echo TEXT_CLICK_TO_ENLARGE;?></a></td></tr></table> See where it says SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT replace SMALL_IMAGE_WIDTH any size you want (like this 200) that's it do the same for the SMALL_IMAGE_HEIGHT (Let say 200) you can use what ever size you want just chage the #'s to what ever pixel size you want for the product picture to be on that page. here"s a copy of the changed code <?php echo "<a href="java script:popupImages($products_id)">"; echo tep_image(DIR_WS_IMAGES . $product_info // *******here where the change is done below******** ['products_image'], "test", 200, 200, 'align="right" hspace="5" vspace="5"') . "</a>";?> </td></tr><tr><td align=center><? echo "<a href="java script:popupImages($products_id)">"; echo TEXT_CLICK_TO_ENLARGE;?></a></td></tr></table> hope that is easy to follow Let me know if you get it to work guys Link to comment Share on other sites More sharing options...
valley Posted March 15, 2003 Share Posted March 15, 2003 Hello, I have a similar problem However I couldn't find the code segment in the product_info.php in catalog or catalog/admin directories. could you pleaelet me know the correct path Cheers Link to comment Share on other sites More sharing options...
bubba30 Posted March 18, 2003 Share Posted March 18, 2003 catalog/ scroll down and you will find it. Let me know if you found it bubba30 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.