Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pop Up images do not resize


Brent_A

Recommended Posts

Hello,

 

Can anyone help me with the following, when I click on the enlarge image link in the product listing page, the image doesn't resize it simply remains at thumbnail size. I've searched the support forums and contribution but can't find an answer.

 

Any suggestions gratefully received.

 

Brent

Link to comment
Share on other sites

I assume you have added larger images as well as thumbnails when making the products?

 

Otherwise I would put a bit of debug on the popup_image page to see what image it is trying to display.

 

matt

Link to comment
Share on other sites

Assuming that your images are larger than thumbnail, and are controlling the size to display images in your admin panel,

 

open catalog/popup_image.php and look for this line

 

echo tep_image(DIR_WS_IMAGES . $products['products_image'],     $products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);}

 

and replace with this:

 

$size=GetImageSize(DIR_WS_IMAGES . $products['products_image']);
 echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], $size[0], $size[1]);

 

Be sure to make a backup of your popup_image.php before doing any changes.

GEOTEX from Houston, TX

 

(George)

Link to comment
Share on other sites

Assuming that your images are larger than thumbnail, and are controlling the size to display images in your admin panel,

 

open catalog/popup_image.php and look for this line

 

echo tep_image(DIR_WS_IMAGES . $products['products_image'], ? ? $products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);}

 

and replace with this:

 

$size=GetImageSize(DIR_WS_IMAGES . $products['products_image']);
?echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], $size[0], $size[1]);

 

Be sure to make a backup of your popup_image.php before doing any changes.

 

Thanks,

 

I'll give this a try and let you know.

 

Brent

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...