Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enlarge Image


Vortex

Recommended Posts

Posted

Hey, I have found that by default, you can only upload one image for each product.

 

This image is then used for everything from thumbnails to the 'enlarged' picture.

 

The problem I have encountered is that this will lead to one of two problems:

 

(1) if an image uploaded is thumbnail size, this will render the 'enlarged' picture useless and the thumbnail is too small to make out details clearly

or

(2) if the image uploaded is original size this will then lead to long (unacceptable) loading times for dial-up users as the 'thumbnail' view of the pictures is just the original image resized using height and width attributes instead of resizing the actual picture

 

I was wondering if anyone knows a way to have either

 

1) an automatic resizing of the actual picture from the original to thumbnail size (i.e. not just changing the height and width attributes) and displaying these thumbnail size pictures for everthing besides the popup window which shows the enlarged picture.

 

or 2) changing a file (perhaps popup_image.php) such that it will load a second picture (which can be manually uploaded through a FTP client) when the 'click to enlarge' is clicked. E.g. all thumbnail views display 'item.jpg' and all enlarged images (in the popup window) display 'item_large.jpg'

 

I'm thinking the second way will probably be easier as if I can showhow attach a '_large' before the file extension in the popup_image.php file, it'll work. However, I don't understand PHP very well so I have no idea how to do this.

 

I'm making an educated guess that somehow I have to play with this line

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

 

Thanks in advance for any help

Posted

You are better off looking in the Contributions section. There are tons of thumbnail solutions there. :thumbsup:

Posted

I finally got my images to appear correctly within the catalog. Now... my issue remains to be resolved with the click to enlarge viewing. Is there some way that a scroll bar can be programmed into the enlarged viewing window? Fine detail is incredibly important to most of the items within my store. I need to work on some photography details yet but being able to scroll the picture would really enhance my customers browsing abilities. Any points in the right direction would be very helpful .

Thanks!

Heather Thompson

Lyn's Fiber to Fabric

Posted
I finally got my images to appear correctly within the catalog.? Now... my issue remains to be resolved with the click to enlarge viewing.?  Is there some way that a scroll bar can be programmed into the enlarged viewing window?? Fine detail is incredibly important to most of the items within my store.? I need to work on some photography details yet but being able to scroll the picture would really enhance my customers browsing abilities.? Any points in the right direction would be very helpful .

Thanks!

 

Hi Heather,

 

Try asking here http://www.oscommerce.com/forums/index.php?showtopic=129877&hl=. This has just been updated and is CSS controled, which probably has what you wanted.

 

Good luck! :)

Archived

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

×
×
  • Create New...