Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.



Recommended Posts



I am very, very new to osCommerce. I've done searches on the subject of images and keep finding answers to a question I am not asking. Here is my question. On the products_info.php page where the image settings are 'SMALL_IMAGE_WEIGHT, SMALL_IMAGE_HEIGHT' I changed this to '275', (to a certain width and left the height blank so the image would automatically resize to the width). This works perfect in FF but in IE, the image is not displayed. Any suggestions as to how to get it to work?


Also, is there a way to actually add an image size dimension in the database (for example an alternative to SMALL_IMAGE_WEIGHT) that will show up in my admin image configuration?


thanks in advance to anyone who can answer.

Link to comment
Share on other sites

Hey Dan,


I think I understand what you are trying to accomplish.

All of your images (thumbnails) will have the same height, but will vary in width. Am I correct so far? If so...


If this is the line you edited in products_info.php -


<?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>'; ?>


Put it back the way it was.

Now go into your Admin Panel > Configuration > Images.


Set the "Small Image Height" to what your thumbnails will be.

But leave the "Small Image Width" blank.

Then set the "Calculate Image Size" to true (I think).


That should do it!


By the way... this info is all over the forum. Don't bother with the forums search function. You're better off using Google and just adding osCommerce to the search string. ;)

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Thanks Jim.


I tried this already. It does resize the thumbnails, but I'm looking for the same effect on the larger individual images on the products page. I'll keep looking.


thanks again. I really appreciate your time.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...