Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Images


Freedom Fighter

Recommended Posts

Posted

Hey Guys/Gals,

Okay.. I give up! I have been messing around wiht the images for my shop so that when you click the product image to enlarge the image it does!

 

My problem is, If I set the demisions under images in admin, it will apply it to all the images in product lisiting which if that size is applied to some of my images, they will be distorted.

 

So I need it so that the images in the listing of products is small, but when the cusomter "clicks to enlarge," the image is then enlarged.

 

Thanks,

Alex

Extreme Alterations

  • 2 weeks later...
Posted

I had the same problem but couldn't find anything when I looked so I did this. It may not be the best solution but it works well.

 

In the file popup_image.php you'll find a line near the bottom like this

 

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

 

change it to this

 

<?php echo tep_image(DIR_WS_IMAGES . "large".$products_values['products_name'].".jpg", $products_values['products_name']); ?>

 

Now create a directory called large in your images directory. Name the files exactly the same as the products name, of type jpeg and end with .jpg then upload using ftp.

 

Spaces don't seem to be a problem. I've since found something in contributions called big images which is probably (a lot) slicker but now this works I'm leaving it alone.

Archived

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

×
×
  • Create New...