Zen Cart Logo
Forums / General Questions / How do I use two images of the same product ?

How do I use two images of the same product ?

Locked

Views: 1,203

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
5 Feb 2009, 8:13 PM
#1
fedrew avatar

fedrew

New Zenner

Join Date:
Jan 2009
Location:
New Orleans
Posts:
2
Plugin Contributions:
0

How do I use two images of the same product ?

I am a dinosaur, so please forgive me. Currently I am using one image for product on my site which can be enlarged, but is making my site sluggish. How do I use two images (100 x 100 for thumbnail & 300 x 300 for large) for each product? Thank you for any and all help.

5 Feb 2009, 8:20 PM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: How do I use two images of the same product ?

The ideal setup is to actually use three images - your 100x100 image (in this example we'll assume that image file is named product.jpg) is what you upload from admin when creating/editing a product, goes in the /images folder and is used on product listing pages.
A medium size image (the actual size that you use on your product info pages) would be named product_MED.jpg and uploaded to the /images/medium folder on the server.
A large size image (that is displayed in a pop-up window when you click the enlarge image link) would be named product_LRG.jpg and uploaded to the images/large folder on your server.

5 Feb 2009, 8:25 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How do I use two images of the same product ?

The builtin system of 3 images is outlined in this tutorial
https://www.zen-cart.com/tutorials/index.php?article=224

Alternatively, a 3rd party module Image Handler or IH2 is available in the downloads section that dynamically uses one image and creates the others

6 Feb 2009, 3:12 AM
#4
barbaraj avatar

barbaraj

New Zenner

Join Date:
May 2008
Posts:
22
Plugin Contributions:
0

Re: How do I use two images of the same product ?

I just added the image handler and tested it. I displayed the three images, however the large image was way too large. I thought the image handler resizes the images according to the way each size is configured in zen cart. What are the procedures using image hanler?

thank-you,
Barbara

6 Feb 2009, 3:33 AM
#5
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: How do I use two images of the same product ?

barbaraj:

I just added the image handler and tested it. I displayed the three images, however the large image was way too large. I thought the image handler resizes the images according to the way each size is configured in zen cart. What are the procedures using image hanler?

thank-you,
Barbara

Set your image sizes
Admin-->Configuration-->Images

With IH installed, you now can set the size for the large image.

10 Feb 2009, 3:41 AM
#6
barbaraj avatar

barbaraj

New Zenner

Join Date:
May 2008
Posts:
22
Plugin Contributions:
0

Re: How do I use two images of the same product ?

tophand:

Set your image sizes
Admin-->Configuration-->Images

With IH installed, you now can set the size for the large image.

I originally did that and then it worked, but since I uploaded IH the image size does not work. I upload IH to my server, but that's all I did. Should it be in a certain file to work and should I unzip the file before its uploaded or after. I'm really new with this, so i appreciate your help,
thanks

10 Feb 2009, 4:45 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How do I use two images of the same product ?

Unzip the files on your pc, and read the readme or install file in the package for complete instructions. FTP the unzipped file/folder structure to your server as directed.
You will probably also need to run a SQL patch, again per the readme.

10 Feb 2009, 5:02 AM
#8
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: How do I use two images of the same product ?

IH2 adds parameters under admin>configuration>images, so check there.