Forums / Upgrading to 1.5.x / Why can't I show multiple images?

Why can't I show multiple images?

Started by callmeal on 12 Mar 2012, 2:05 PM · Views: 12,462

Results 21 to 40 of 61
15 Mar 2012, 9:33 PM
#21
callmeal avatar

callmeal

New Zenner

Join Date:
Mar 2012
Posts:
42
Plugin Contributions:
0

Why can't I show multiple images?

dgent:

Youre right, it doesnt now. But It did when I went to the red petticoat on his site.

File wise....

includes/modules/additional_images.php

and in your templates folder tpl_modules_additional_images.php

My template doesn't seem to have a tpl_modules_additional_images.php!!! Am I onto something? Can I use the one in, say, the classic template and load it into the template file? Although it's weird that my classic template doesn't do additional images either... :-(

15 Mar 2012, 9:40 PM
#22
callmeal avatar

callmeal

New Zenner

Join Date:
Mar 2012
Posts:
42
Plugin Contributions:
0

Re: Why can't I show multiple images?

callmeal:

My template doesn't seem to have a tpl_modules_additional_images.php!!! Am I onto something? Can I use the one in, say, the classic template and load it into the template file? Although it's weird that my classic template doesn't do additional images either... :-(

I've switched my template over to classic in case that helps for troubleshooting - that one DOES have the tpl file but still no additional images :(

15 Mar 2012, 10:57 PM
#23
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Why can't I show multiple images?

callmeal:

My template doesn't seem to have a tpl_modules_additional_images.php!!! Am I onto something? Can I use the one in, say, the classic template and load it into the template file? Although it's weird that my classic template doesn't do additional images either... :-(Not really.. if your template doesn't have this file, then Zen Cart will use the one in the default_template.. You would only have this file in your template folder if you had modified it. (AKA an override)

I would suggest uploading a CLEAN default_template folder to your site via FTP.. Perhaps the default version is corrupted..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

16 Mar 2012, 11:01 AM
#24
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Why can't I show multiple images?

Looking at this whole thing logically, I'm thinking:

Since this appears in your source:

<!--bof Additional Product Images --> <!--eof Additional Product Images -->

the template file is OK.

Since the images don't appear, despite the template file's attempt to display them, the problem pretty much has to be that the images aren't in the place Zencart is looking for them, or aren't named properly. I can't think of any other cause.

Update: I added an additional image to the product in the demo Music category, naming it sooty_01.jpg (the original image is sooty.jpg). It displayed fine. I then changed the file name to sooty_01.JPG (uppercase extension) - didn't display.

16 Mar 2012, 1:52 PM
#26
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Why can't I show multiple images?

stevesh:

Update: I added an additional image to the product in the demo Music category, naming it sooty_01.jpg (the original image is sooty.jpg). It displayed fine. I then changed the file name to sooty_01.JPG (uppercase extension) - didn't display.
And this makes sense since in Unix servers JPG and jpg are interpreted as being two different things..:yes:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

16 Mar 2012, 11:16 PM
#27
ealdinger avatar

ealdinger

Inactive

Join Date:
Dec 2010
Posts:
16
Plugin Contributions:
0

Re: Why can't I show multiple images?

I'm having trouble with this as well! If you go to this page in my store: http://kissmysasscosmetics.com/index.php?main_page=product_info&cPath=2_21&products_id=160

The main image is:
liptintbadreputation.jpg

The additional image that's not showing up is:
liptintbadreputation_01.jpg

They are both in the general images folder, nothing in the large or medium folders. Any ideas why the additional image isn't working?

I double & triple checked that I have it set in my admin to show additional photos and to show 3 additional photos per row.

17 Mar 2012, 4:32 AM
#28
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: Why can't I show multiple images?

has anyone tried adding jpg JPG to their images/htaccess file?

original

<FilesMatch ".*.(jpe?g|JPE?G|gif|GIF|png|PNG|swf|SWF)$" >

modified

<FilesMatch ".*.(jpe?g|JPE?G|jpg|JPG|gif|GIF|png|PNG|htm|swf|SWF)$" >

17 Mar 2012, 4:46 AM
#29
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Why can't I show multiple images?

buildingblocks:

has anyone tried adding jpg JPG to their images/htaccess file?

original

<FilesMatch ".*.(jpe?g|JPE?G|gif|GIF|png|PNG|swf|SWF)$" >

modified

<FilesMatch ".*.(jpe?g|JPE?G|jpg|JPG|gif|GIF|png|PNG|htm|swf|SWF)$" >

Thats unnecessary, it already does that thats what JPE?G means, it means the E is optional so JPG or JPEG are acceptable.

Webzings Design
Semi retired from Web Design

17 Mar 2012, 4:50 AM
#30
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Why can't I show multiple images?

@earldinger

your additional image is 500 by 500px which is fine but it is 300kb in size (it seems to be saved at photographic quality), try saving it for web and see if that makes a difference it should stay the same dimensions by come down to around 60kb, then upload it, often if the image is excessively large it can cause issues on some hosts.

ealdinger:

I'm having trouble with this as well! If you go to this page in my store: http://kissmysasscosmetics.com/index.php?main_page=product_info&cPath=2_21&products_id=160

The main image is:
liptintbadreputation.jpg

The additional image that's not showing up is:
liptintbadreputation_01.jpg

They are both in the general images folder, nothing in the large or medium folders. Any ideas why the additional image isn't working?

I double & triple checked that I have it set in my admin to show additional photos and to show 3 additional photos per row.

Webzings Design
Semi retired from Web Design

17 Mar 2012, 10:50 AM
#31
callmeal avatar

callmeal

New Zenner

Join Date:
Mar 2012
Posts:
42
Plugin Contributions:
0

Re: Why can't I show multiple images?

stevesh:

Looking at this whole thing logically, I'm thinking:

Since this appears in your source:

<!--bof Additional Product Images --> <!--eof Additional Product Images -->

the template file is OK.

Since the images don't appear, despite the template file's attempt to display them, the problem pretty much has to be that the images aren't in the place Zencart is looking for them, or aren't named properly. I can't think of any other cause.

Update: I added an additional image to the product in the demo Music category, naming it sooty_01.jpg (the original image is sooty.jpg). It displayed fine. I then changed the file name to sooty_01.JPG (uppercase extension) - didn't display.

Hmm, interesting - I originally had an uppercase extension on them. However they are now in lowercase and still not working :(

DivaVocals:

Not really.. if your template doesn't have this file, then Zen Cart will use the one in the default_template.. You would only have this file in your template folder if you had modified it. (AKA an override)

I would suggest uploading a CLEAN default_template folder to your site via FTP.. Perhaps the default version is corrupted..

Ok, I'll give this a go tonight.

dgent:

Can you just make the image called red.jpg and then red2.jpg, and don't worry about the MED and LGE suffixes for the moment.

Ok, I'm back to just red.jpg and red2.jpg now. Both files are under 50kb.

17 Mar 2012, 11:46 AM
#32
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Why can't I show multiple images?

I guess you might use phpMyAdmin in your hosting control panel to check the product_type_layout table and make sure that Show Product Additional Images (id 12) is actually set to 1.

17 Mar 2012, 11:52 AM
#33
callmeal avatar

callmeal

New Zenner

Join Date:
Mar 2012
Posts:
42
Plugin Contributions:
0

Re: Why can't I show multiple images?

DivaVocals:

I would suggest uploading a CLEAN default_template folder to your site via FTP.. Perhaps the default version is corrupted..

Didn't work :(

17 Mar 2012, 11:55 AM
#34
callmeal avatar

callmeal

New Zenner

Join Date:
Mar 2012
Posts:
42
Plugin Contributions:
0

Re: Why can't I show multiple images?

stevesh:

I guess you might use phpMyAdmin in your hosting control panel to check the product_type_layout table and make sure that Show Product Additional Images (id 12) is actually set to 1.

Yes, it's set to 1 :(

17 Mar 2012, 2:07 PM
#35
callmeal avatar

callmeal

New Zenner

Join Date:
Mar 2012
Posts:
42
Plugin Contributions:
0

Re: Why can't I show multiple images?

Hey folks

I gave up and did a fresh install, and additional images worked until.... I installed my stock by attributes add in. I'm going to head over to that board to see if they can figure out what it is that's messing it about!

Thanks for all your help - I'll update if/when it gets sorted!

Regards

Callmeal

17 Mar 2012, 3:40 PM
#36
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Why can't I show multiple images?

callmeal:

Hey folks

I gave up and did a fresh install, and additional images worked until.... I installed my stock by attributes add in. I'm going to head over to that board to see if they can figure out what it is that's messing it about!

Thanks for all your help - I'll update if/when it gets sorted!

Regards

Callmeal
SBA has ZERO effect on additional images..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

17 Mar 2012, 3:58 PM
#37
ealdinger avatar

ealdinger

Inactive

Join Date:
Dec 2010
Posts:
16
Plugin Contributions:
0

Re: Why can't I show multiple images?

nigelt74:

@earldinger

your additional image is 500 by 500px which is fine but it is 300kb in size (it seems to be saved at photographic quality), try saving it for web and see if that makes a difference it should stay the same dimensions by come down to around 60kb, then upload it, often if the image is excessively large it can cause issues on some hosts.

I did this and the additional images is under 90k but it still won't show : (

17 Mar 2012, 3:58 PM
#38
ealdinger avatar

ealdinger

Inactive

Join Date:
Dec 2010
Posts:
16
Plugin Contributions:
0

Re: Why can't I show multiple images?

stevesh:

I guess you might use phpMyAdmin in your hosting control panel to check the product_type_layout table and make sure that Show Product Additional Images (id 12) is actually set to 1.

I checked this too and mine is set to 1 but additional images are not showing.

17 Mar 2012, 3:59 PM
#39
ealdinger avatar

ealdinger

Inactive

Join Date:
Dec 2010
Posts:
16
Plugin Contributions:
0

Re: Why can't I show multiple images?

DivaVocals:

SBA has ZERO effect on additional images..

I know you said it has no effect but I also have SBA (the 1.5 beta version).

17 Mar 2012, 4:11 PM
#40
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Why can't I show multiple images?

ealdinger:

I know you said it has no effect but I also have SBA (the 1.5 beta version).I said this because SBA doesn't modify ANY files which affect additional images.. So it's not LOGICAL that this add-on would have any affect..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.