Forums / General Questions / Additional Product Images not displaying Large

Additional Product Images not displaying Large

Locked

Views: 2,322

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
26 Mar 2010, 8:26 PM
#1
rachaelosaurus avatar

rachaelosaurus

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Additional Product Images not displaying Large

I am trying to set up additional product images and have run into a problem. I have searched the forum and haven't found a similar problem, so sorry if this is a duplicate.

The problem is, on my product info page, if you click "larger image" on an additional photo, it only opens it as a small image. I have all the images uploaded correctly, and if you click on the main image, to view a larger version, it will open a larger image, so I know that the folder structure is correct.

I have my images set up like this:
images/product_images/photo.jpg
images/product_images/photo_01.jpg
images/product_images/photo_02.jpg
images/medium/product_images/photo_MED.jpg
images/large/product_images/photo_LRG.jpg
images/large/product_images/photo_01_LRG.jpg
images/large/product_images/photo_02_LRG.jpg

So, like I said... the main one is working, photo_LRG.jpg is working. The others are not, even though they are correctly named and in the right folder.

It is not just opening the larger image smaller, it is just opening the small images. So, for example it is only opening photo_01.jpg instead of photo_01_LRG.jpg.

I cannot seem to figure out why this is happening. Thanks for any help!

I'm using the newest version of ZenCart.
I am using a few add-ons... Stock by Attributes, Newsletter Subscribe, and Return Authorization. None of those affect the page I am having problems with, though.
I have customized tpl_product_info_display.php but have checked to make sure that everything between bof Additional Images and eof Additional Images is exactly the same as on a fresh install.
This is my first Zen Cart site and it is not live.
I would prefer not to post a link to my site publicly, but please send me a message if you think you can help and want to see the site.

28 Mar 2010, 1:15 AM
#2
rachaelosaurus avatar

rachaelosaurus

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

Can anyone help me on this? I really need to get it figured out.

4 Apr 2010, 4:08 AM
#3
graphicsforall avatar

graphicsforall

New Zenner

Join Date:
Apr 2010
Posts:
1
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

I am having the EXACT same problem.

6 Apr 2010, 8:00 PM
#4
rachaelosaurus avatar

rachaelosaurus

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

Can anyone help me with this?

6 Apr 2010, 10:35 PM
#5
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

have you thought about using image handler 2?
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=117

saves all that fannying about with FTP and also resizes images on the fly increasing a ZC site speed. easy to install too..

10 Apr 2010, 1:31 AM
#6
rachaelosaurus avatar

rachaelosaurus

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

Thanks for the suggestion mcshane, but I'd rather not use another add on. I really just want to figure out why the base install isn't working. That looks great though, and I might end up using it anyways.

11 Apr 2010, 11:42 AM
#7
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

read this if you have not already.
https://www.zen-cart.com/tutorials/index.php?article=58

also i strongly recommend IH2.. It sorts alll that resizing of additional images out for you and speeds up your site...

good luck!
M

11 Apr 2010, 2:05 PM
#8
craft_adventure avatar

craft_adventure

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

There are some problems with your file naming

A group should go like this
img_product_images-photo_01.jpg (root Image IE small)
img_porduct_images-photo_01_MED.jpg (med Image)
img_product_images-photo_01_LRG.jpg (large Image)
img_product_images-photo_01_ex1.jpg
img_product_images-photo_01_ex2.jpg (for the extra images)

The extra images need to have their own unique title but one which is based on the root images that you uploaded from the admin.

Make the extra images the dimension size that you want the image to appear when a visitor clicks the Larger Image Link.

Zen cart will size down the extra image that appears on the product info page automatically.

It is good to come up with your file naming system from the start or it just gets crazy later on when you have a ton of images loaded.

11 Apr 2010, 2:11 PM
#9
craft_adventure avatar

craft_adventure

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

Oh another note. It is best to just use _ and - in your file names and not / which confuses the poor computers and makes headaches for us humans.

15 Apr 2010, 4:18 PM
#10
rachaelosaurus avatar

rachaelosaurus

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

Craft Adventurer - I think you are reading my post wrong. The file names do not have "/"s in them, the "/"s show folder structure. The file names after them, for example.. "photo.jpg" and "photo_01.jpg". Maybe, I'm reading your post wrong, though! Also, where should I be uploading the additional images? I believe I have them in the right folders, but that's obviously not working for me :)

Thanks again Shane. I have read that though, and I believe my file names correspond with the way that tutorial says to do it. If you see that they don't, please tell me where! That could be my whole problem! I did download and install Image Handler 2, but I am still having the problem. Even with IH2, the large images will not show up.

15 Apr 2010, 4:25 PM
#11
craft_adventure avatar

craft_adventure

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

Sorry. Let me read it again ... and see if I can help.
I went through that whole process when I was figuring out my images...

15 Apr 2010, 4:55 PM
#12
craft_adventure avatar

craft_adventure

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

Okay I sorry that I read it wrong.
I went through the whole process of the image thing for my carts and it was frustrating but now I am good. So here goes.

I learned that my extra image file names have to be exactly the same as the base image but then followed by_ and something-
I have chosen _ex-1 , ex-2 , ex-3 etc to order my extra images. I upload the extra image straight into the main image folder through FTP so that it is next to the base image that I uploaded from the admin for the product.

Here is an example of my particular file names which work.
The first being the base image and the second being my extra image.

img_ani-pin-tor-110.jpeg
img_ani-pin-tor-110_ex-1.jpeg

this works fine for me. The extra image I have sized dimensionally to be the "larger image size" Zen Cart displays it as a thumbnail on the product page. And then it open large when clicked.

Have you worked on your picture image sizes in the admin?

15 Apr 2010, 6:31 PM
#13
rachaelosaurus avatar

rachaelosaurus

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Additional Product Images not displaying Large

Ah, OK.. I see what you mean! I tried that, and it worked. Thank you so much! I was trying to upload a small image and then have it open a larger image located in images/large for the extra images like it does with the main image. Loading the large image directly into the image folder worked perfectly!
:clap: