acoz Posted November 6, 2005 Share Posted November 6, 2005 is it possible to have 2 different image sizes? one for categories and one bigger size for the product detail page? Any help with be great! thx! Link to comment Share on other sites More sharing options...
acoz Posted November 6, 2005 Author Share Posted November 6, 2005 here's some screenshots i took from a website long ago.. dont know if the webmaster use some kind of addon, but here's what im talking about. Link to comment Share on other sites More sharing options...
Wendy James Posted November 6, 2005 Share Posted November 6, 2005 osCommerce does that already. When you make your product, you upload a larger version of your image. osCommerce then changes the size on the appropriate page depending on what you have it set as in your configuration area. 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...
acoz Posted November 6, 2005 Author Share Posted November 6, 2005 osCommerce does that already. When you make your product, you upload a larger version of your image. osCommerce then changes the size on the appropriate page depending on what you have it set as in your configuration area. Thanks for the reply. Im guessing your talking about "Configuration" under "images" Small Image Width Small Image Height Once i set these to the setting i wanted for catalog, let's say 24x24. now that the catalog well show the picture at 24x24. But the product detail page is also showing the picture by 24x24. am I doing something wrong? Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2005 Share Posted November 7, 2005 I have the same question! :-" Link to comment Share on other sites More sharing options...
ecgbyme Posted November 7, 2005 Share Posted November 7, 2005 I have the same question! :-" When you placed all the page info including the image did you specify the image width and height? B) Example:<img align="right" src="images/grav-bott.jpg" width="260" height="300" alt="Graviola Bottles"> Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2005 Share Posted November 7, 2005 When you placed all the page info including the image did you specify the image width and height? B) I saw this in my pages: <img src="images/1001051324.jpg" border="0" alt="1001051324" title=" 1001051324 " width="150" height="112.8" hspace="5" vspace="5"><br>Click to enlarge</a>'); I don't understand what's you means... :( This is my image value in my admin area. What I need to change? <_< Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2005 Share Posted November 7, 2005 help!!! Link to comment Share on other sites More sharing options...
acoz Posted November 7, 2005 Author Share Posted November 7, 2005 My didnt even show the "Display Image Width" and "Display Image Height" setting. Is there anyway i can make it show up? Link to comment Share on other sites More sharing options...
ecgbyme Posted November 7, 2005 Share Posted November 7, 2005 I saw this in my pages:<img src="images/1001051324.jpg" border="0" alt="1001051324" title=" 1001051324 " width="150" height="112.8" hspace="5" vspace="5"><br>Click to enlarge</a>'); I don't understand what's you means... :( This is my image value in my admin area. What I need to change? <_< The image settings in Admin is for the small image that appears in the upper right hand corner. Here's another piont. If you want the small image to look more real and undistorted, change your small image height setting to nothing and OSC will automatically adjust the image to it's original proportions. Try small image width at 100 Now You're asking about a different image, the image in your product detail page. This is not found in the Admin Configuration. It is found in Admin under Catalog in catagories-products in the body of the write up in whatever product you are looking at. The image should be in there and you could increase the size by changing the width and height. The changes must be in proportion to each other so multipy the exiting H -W number by the same factor. B) Link to comment Share on other sites More sharing options...
acoz Posted November 7, 2005 Author Share Posted November 7, 2005 The image settings in Admin is for the small image that appears in the upper right hand corner. Here's another piont. If you want the small image to look more real and undistorted, change your small image height setting to nothing and OSC will automatically adjust the image to it's original proportions. Try small image width at 100 Now You're asking about a different image, the image in your product detail page. This is not found in the Admin Configuration. It is found in Admin under Catalog in catagories-products in the body of the write up in whatever product you are looking at. The image should be in there and you could increase the size by changing the width and height. The changes must be in proportion to each other so multipy the exiting H -W number by the same factor. B) Im looking inside my product detail page setting, but i dont see any setting i can change my image size. Only upload image setting. Link to comment Share on other sites More sharing options...
acoz Posted November 7, 2005 Author Share Posted November 7, 2005 Well, i finally got it >_< for those who want to display their product detail image bigger here's how. 1.) Goto your /public_html/catalog/ and open up "product_info.php" 2.) Find this script inside "product_info.php" <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> 3.) Where you see SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"' change it to 'width="xxx" height="xxx" hspace="5" vspace="5"' NOTE: change the xxx to whatever image size you want it to be 4.) save and upload (overwrite file) be sure to make a backup! before uploading :) Link to comment Share on other sites More sharing options...
Guest Posted November 8, 2005 Share Posted November 8, 2005 Hi acoz, I also find one solution. Yours is not bad, but I think this one is better. (read the tips in readme.txt) http://www.oscommerce.com/community/contri...y,all/search,GD Good chance! :thumbsup: Link to comment Share on other sites More sharing options...
acoz Posted November 8, 2005 Author Share Posted November 8, 2005 Hi acoz, I also find one solution. Yours is not bad, but I think this one is better. (read the tips in readme.txt) http://www.oscommerce.com/community/contri...y,all/search,GD Good chance! :thumbsup: Thanks! :lol: Link to comment Share on other sites More sharing options...
jvmedia Posted November 22, 2005 Share Posted November 22, 2005 Well, i finally got it >_< for those who want to display their product detail image bigger here's how. 1.) Goto your /public_html/catalog/ and open up "product_info.php" 2.) Find this script inside "product_info.php" <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> 3.) Where you see SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"' change it to 'width="xxx" height="xxx" hspace="5" vspace="5"' NOTE: change the xxx to whatever image size you want it to be 4.) save and upload (overwrite file) be sure to make a backup! before uploading :) You can also just change the instances of SMALL_IMAGE to LARGE_IMAGE and that will work too ;) Link to comment Share on other sites More sharing options...
dragon5 Posted November 22, 2005 Share Posted November 22, 2005 Well, i finally got it >_< for those who want to display their product detail image bigger here's how. 1.) Goto your /public_html/catalog/ and open up "product_info.php" 2.) Find this script inside "product_info.php" <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> 3.) Where you see SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"' change it to 'width="xxx" height="xxx" hspace="5" vspace="5"' NOTE: change the xxx to whatever image size you want it to be 4.) save and upload (overwrite file) be sure to make a backup! before uploading :) Neither solution in this thread seems to work for me. I get no changes to the image in product_info? Tom Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.