adding multiple images

Views: 12,066

Results 1 to 20 of 24
10 May 2012, 9:53 AM
#1
kiisu avatar

kiisu

New Zenner

Join Date:
May 2012
Posts:
6
Plugin Contributions:
0

adding multiple images

HI,

I got stuck in a quite simple task - adding more than one image to the product.

Did exactly as shown in the tutorial without any sucess
http://www.youtube.com/watch?v=zae6Y0jeB3c

Also in the catalog/additional product images couldnt help me(could do the upload and select files but the image preview is not appearing) Same on the product page - still one image

Is there any other places to check?

10 May 2012, 10:07 AM
#2
stevesh avatar

stevesh

Black Belt

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

Re: adding multiple images

I don't know about the video, but adding additional images to Zencart products is a matter of naming the images properly:

http://www.zen-cart.com/content.php?100

10 May 2012, 10:42 AM
#3
kiisu avatar

kiisu

New Zenner

Join Date:
May 2012
Posts:
6
Plugin Contributions:
0

Re: adding multiple images

read the topic, still everything correct

In the Main catalogue I have
kummik.jpg
kummik_01.jpg
kummik_02.jpg

I got a bit deeper by searcing the answer now
in my window Admin->Catalog->Product Types->Product General->Edit Layout->Show Additional Images = true
(should be selection 0 or 1 , I have selection true,false???) - maybe thats messing something up?

10 May 2012, 11:07 AM
#5
kiisu avatar

kiisu

New Zenner

Join Date:
May 2012
Posts:
6
Plugin Contributions:
0

Re: adding multiple images

dgent:

try kummik.jpg, then kummik2.jpg and kummick3.jpg

Make sure all the filenames are exactly the same case.

no use - still the same

10 May 2012, 11:07 AM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: adding multiple images

kiisu:

... in my window Admin->Catalog->Product Types->Product General->Edit Layout->Show Additional Images = true
(should be selection 0 or 1 , I have selection true,false???) - maybe thats messing something up?
This field should be set to 1, not true, for the additional images to be displayed. Your naming convention is just fine.

10 May 2012, 11:10 AM
#7
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: adding multiple images

lat9:

This field should be set to 1, not true, for the additional images to be displayed. Your naming convention is just fine.

There is no 1 or 0, it says True or False in the drop down, but 0 or 1 in the admin page.

10 May 2012, 11:15 AM
#8
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: adding multiple images

The naming convention _01, _02 etc, works for me.

True in the dropdown also works.

I assume your additional images are in the same folder as the main images?

Your setting in admin>configuration>images>product info - number of additional images per row? obviously should be more than zero

Simon

10 May 2012, 11:17 AM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: adding multiple images

In my 1.5.0 admin, the selection Admin->Catalog->Product Types->Product General->Edit Layout->Show Additional Images shows:

Please make any necessary changes

Show Product Additional Images
Display Additional Images on Product Info 0= off 1= on
10 May 2012, 11:19 AM
#10
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: adding multiple images

lat9:

In my 1.5.0 admin, the selection Admin->Catalog->Product Types->Product General->Edit Layout->Show Additional Images shows:

Please make any necessary changes

Show Product Additional Images
Display Additional Images on Product Info 0= off 1= on


So does mine, but the drop down below it has True/False. I don't think that makes any difference, its just a switch.
10 May 2012, 12:31 PM
#11
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: adding multiple images

kiisu:

HI,

I got stuck in a quite simple task - adding more than one image to the product.

Did exactly as shown in the tutorial without any sucess
http://www.youtube.com/watch?v=zae6Y0jeB3c

Also in the catalog/additional product images couldnt help me(could do the upload and select files but the image preview is not appearing) Same on the product page - still one image

Is there any other places to check?

What TEMPLATE are you using? EG: Some TemplateMonster templates deliberately disable additional images. It may also be true of other commercial templates.

Look in YOUR TEMPLATE'S tpl_product_info_display.php file. Do you see:

<!--bof Additional Product Images -->
<?php
/**
 * display the products additional images
 */
  require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
<!--eof Additional Product Images -->
10 May 2012, 12:45 PM
#12
dsimon avatar

dsimon

New Zenner

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

Re: adding multiple images

kiisu:

read the topic, still everything correct

In the Main catalogue I have
kummik.jpg
kummik_01.jpg
kummik_02.jpg

I got a bit deeper by searcing the answer now
in my window Admin->Catalog->Product Types->Product General->Edit Layout->Show Additional Images = true
(should be selection 0 or 1 , I have selection true,false???) - maybe thats messing something up?

I Use kummik1.jpg
kummik1-2.jpg
kummik1-3.jpg

Works every time

10 May 2012, 5:10 PM
#13
kiisu avatar

kiisu

New Zenner

Join Date:
May 2012
Posts:
6
Plugin Contributions:
0

Re: adding multiple images

dsimon:

I Use kummik1.jpg
kummik1-2.jpg
kummik1-3.jpg

Works every time

but not for me. as for fairestcapes recommendation - yes I can see this exact code

all it does with image uploading is that it replaces the existing one

since the page is quite new ~24h Im willing to give out passwords for someone experienced to try - but dont mess it up please :)

30 May 2012, 2:44 AM
#14
hermes369 avatar

hermes369

New Zenner

Join Date:
Dec 2006
Location:
Augusta, GA
Posts:
74
Plugin Contributions:
0

Re: adding multiple images

I hope you got this solved. From your last post it seems you are uploading through the interface on the product page. Is it possible that you have to upload the files manually? Or would that make a difference? The more I think about it, that shouldn't really matter except that perhaps Zen-Cart assumes that you have only one image because it doesn't have a place to start counting? I'm just speculating.

30 May 2012, 3:03 AM
#15
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: adding multiple images

hermes369:

I hope you got this solved. From your last post it seems you are uploading through the interface on the product page. Is it possible that you have to upload the files manually? Or would that make a difference? The more I think about it, that shouldn't really matter except that perhaps Zen-Cart assumes that you have only one image because it doesn't have a place to start counting? I'm just speculating.

You can only upload the first (main) image by the admin interface on the product page.
kummik.jpg

The additional images need to be upload manually by ftp
kummik_01.jpg
kummik_02.jpg

If you upload them all by the admin interface they just replace the previous image
So if you did that in order kummik.jpg, kummik_01.jpg, kummik_02.jpg
Then kummik_02.jpg would be the main image and the other 2 would not be connected anywhere.

btw: There are addons that can upload additional images for products, such as IH3 or IH4

30 May 2012, 10:31 AM
#16
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: adding multiple images

gilby:

You can only upload the first (main) image by the admin interface on the product page.
kummik.jpg

The additional images need to be upload manually by ftp
kummik_01.jpg
kummik_02.jpg

If you upload them all by the admin interface they just replace the previous image
So if you did that in order kummik.jpg, kummik_01.jpg, kummik_02.jpg
Then kummik_02.jpg would be the main image and the other 2 would not be connected anywhere.

btw: There are addons that can upload additional images for products, such as IH3 or IH4

Not quite right. If you loaded 03 first, then 02, then 01, 01 will be your main image, and 02 and 03 will be connected and work as additional images. You don't have to load them by FTP, you can do it via admin as long as you load them in reverse order.

30 May 2012, 10:47 AM
#17
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: adding multiple images

dgent:

Not quite right. If you loaded 03 first, then 02, then 01, 01 will be your main image, and 02 and 03 will be connected and work as additional images. You don't have to load them by FTP, you can do it via admin as long as you load them in reverse order.
Yes if you load the main image last, that should work fine.

Of course this still isn't optimal for images.
as you should have small, medium and large versions of the images for efficiency.
Normally you would ftp these to the server or use an addon

6 Oct 2012, 6:06 AM
#18
stevinoz avatar

stevinoz

New Zenner

Join Date:
Apr 2011
Posts:
5
Plugin Contributions:
0

Re: adding multiple images

I have the same problem tried all the suggested naming procedures above plus more, also checked tpl_product_info_display.php file it matches the above, mine also has the true(selected) or false on the pull down but has 1 in the value of "Show Product Additional Images" also tried suggested upload procedures above with no luck, does anyone have any other suggestions?

http://weddingprep.com.au zen 1.5.0
site was showing multiple pics before recent upgrade from 1.3.9

9 Oct 2012, 1:48 PM
#19
guido49 avatar

guido49

New Zenner

Join Date:
Oct 2012
Location:
Natrona Heights, PA
Posts:
23
Plugin Contributions:
0

Re: adding multiple images

Good morning...I'm new to the forum and don't mean to hijack this thread, so if I'm doing something wrong, please let me know.

I'm not a PHP or CSS guru, although I have a basic understanding of both.

I'm having the EXACT same problem as kiisu and Stevinoz. I'm running ZC v1.5.1, which was showing multiple images with no problems until I attempted to install the 'Additional Product Images v2.0c" module yesterday. As soon as I had installed that, multiple images no longer displayed.

I removed (or at least it appears that I removed) the Additional Images module, but still no additional images. My images are all in the main Images folder, and had been working fine.

I've tried everything suggested in this thread to no avail. Does anyone know what .PHP files (or anything relevant) I need to look at to determine what the problem is?

Thanks in advance for any help/insight. I can post a link to my store, but you won't be able to tell anything's wrong, so I don't see the point.

Guy

If you act like you know what you're doing,
everyone thinks that you do................

10 Oct 2012, 1:52 PM
#20
guido49 avatar

guido49

New Zenner

Join Date:
Oct 2012
Location:
Natrona Heights, PA
Posts:
23
Plugin Contributions:
0

Re: adding multiple images

This morning I took another look at this and actually resolved the problem. This worked in my case, it may not work for you.

In this file -

includes/templates/your_template/templates/tpl_modules_additional_images.php I found this line:

<?php if ($flag_show_product_info_additional_images != **1** && $num_images > 0) { ?>

Note the bold number 1. I changed that to a 0 (zero) so now I have this:

<?php if ($flag_show_product_info_additional_images != **0** && $num_images > 0) { ?>

Voila! All is well.

Obviously that Additional Images thing I attempted to use changed this file, but did not inform me. I just happended to look at the file's 'last modified' date... And like I said, I'm not a PHP guru, so this was a great 'PITA', as it were.

Hope this helps someone else.

Later.

If you act like you know what you're doing,
everyone thinks that you do................