Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Click to enlarge


cookem

Recommended Posts

Posted

Seen a few posts on here about not being able to adjust the size of the image that is displayed whe you click "Click to enlarge".

 

It will only dispay the image, at it's largest, at the dimensions that your image actually is. However, you can override this to make it larger, but at a loss of quality.

 

You change the following:-

 

In file popup_image.php, set the image dimension parameters that are passed to the function tep_image().

 

So if my original image is 200 x 200 and I want to display it at 300 x 300 I would change the line:-

 

<?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); ?>

 

to:-

 

<?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], '300', '300'); ?>

 

It's not a nice way to do it, but it works. Hope it helps someone.

Archived

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

×
×
  • Create New...