Zen Cart Logo
Forums / General Questions / Can't get multiple images in product to work

Can't get multiple images in product to work

Views: 1,361

Results 1 to 11 of 11
6 Mar 2014, 4:44 AM
#1
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Can't get multiple images in product to work

Can someone please help me. I have read the directions on using multiple images in products many times here http://www.zen-cart.com/content.php?100. But no matter what I do, I can't get the multiple images to show up in my products.

I have created a directory as follows

/images/dutchware/ and chmod it to 777.

I have ftp uploaded the following images to that directory (/images/dutchware/).
Tarp-flyz_1.jpg
Tarp-flyz_2.jpg

Then I pick Choose file and pick "Tarp-flyz_1.jpg".

Then I went into the product and picked my upload directory to "dutchware".

Delete Image? = N

Overwrite Existing Image on Server? = Y

The one images show up for the other image will not.
What am I doing wrong that the multiple images will not show in the product?

6 Mar 2014, 4:57 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't get multiple images in product to work

If you want both Tarp-flyz_1.jpg and Tarp-flyz_2.jpg to show up for just ONE product, then you need to name them different than you're doing now:

Tarp-flyz.jpg - would be the main image that you upload via the Admin
Tarp-flyz_2.jpg - would be the second image

That way it will show you all images named "Tarp-flyz*******.jpg", where *** is any combination of additional characters.

6 Mar 2014, 4:59 AM
#3
gilby avatar

gilby

Totally Zenned

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

Re: Can't get multiple images in product to work

attroll:

Can someone please help me. I have read the directions on using multiple images in products many times here http://www.zen-cart.com/content.php?100. But no matter what I do, I can't get the multiple images to show up in my products.

I have created a directory as follows

/images/dutchware/ and chmod it to 777.

I have ftp uploaded the following images to that directory (/images/dutchware/).
Tarp-flyz_1.jpg
Tarp-flyz_2.jpg

Then I pick Choose file and pick "Tarp-flyz_1.jpg".

Then I went into the product and picked my upload directory to "dutchware".

Delete Image? = N

Overwrite Existing Image on Server? = Y

The one images show up for the other image will not.
What am I doing wrong that the multiple images will not show in the product?

If you choose Tarp-flyz_1.jpg as your main image
then Tarp-flyz_2.jpg is NOT an additional image

When Tarp-flyz.jpg is your main image
then Tarp-flyz_1.jpg and Tarp-flyz_2.jpg are additional images for Tarp-flyz.jpg

6 Mar 2014, 5:06 AM
#4
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Re: Can't get multiple images in product to work

I have already tried what you said. I put the following in files in the /images/dutchware/ directory.

Tarp_Flyz.jpg
Tarp_Flyz_1.jpg
Tarp_Flyz_2.jpg

But doing this still will not display multiple images for my product. Any other ideas or suggestions?

6 Mar 2014, 5:13 AM
#5
gilby avatar

gilby

Totally Zenned

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

Re: Can't get multiple images in product to work

attroll:

I have already tried what you said. I put the following in files in the /images/dutchware/ directory.

Tarp_Flyz.jpg
Tarp_Flyz_1.jpg
Tarp_Flyz_2.jpg

But doing this still will not display multiple images for my product. Any other ideas or suggestions?That should work.
Check that you DON'T have any case differences
Tarp_FLyz_2.jpg
Tarp_Flyz_2.Jpg
Tarp_flyz_2.jpg
are all different and won't be additional to Tarp_Flyz.jpg

Also have you checked that you have additional images turned on

6 Mar 2014, 5:38 AM
#6
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Re: Can't get multiple images in product to work

Ok, I found my problem. They were displaying but I did not see them because they were displayed at the bottom of the page under the product description. I did not see them because I thought they would be on the top of the page. My product description we a very long one and once I scrolled the page up I saw the additional images.

I have another question but don't know if I should start a new thread or ask here. So here goes.

Is there a way to change it so that my additional will display in a different location? Maybe like right under the primary image?

6 Mar 2014, 6:30 AM
#7
gilby avatar

gilby

Totally Zenned

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

Re: Can't get multiple images in product to work

attroll:

Ok, I found my problem. They were displaying but I did not see them because they were displayed at the bottom of the page under the product description. I did not see them because I thought they would be on the top of the page. My product description we a very long one and once I scrolled the page up I saw the additional images.This is really why a link to the page causing issues can quickly solve problems :smile:

attroll:

I have another question but don't know if I should start a new thread or ask here. So here goes.

Is there a way to change it so that my additional will display in a different location? Maybe like right under the primary image?Copy the file
\includes\templates\template_default\templates\tpl_product_info_display.php
to
\includes\templates\YOUR_TEMPLATE\templates\tpl_product_info_display.php

where "YOUR_TEMPLATE" is the name of your current template

Open this file and find the code section

<!--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 -->

and move it to where you want it.

6 Mar 2014, 6:45 AM
#8
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Re: Can't get multiple images in product to work

Thank you. I am playing with it now. I may have a few more questions here later about this.

6 Mar 2014, 3:37 PM
#9
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Re: Can't get multiple images in product to work

I got them moved to where I want for the time being. I moved the text for <!--bof Additional Product Images --> and <!--bof Add to Cart Box --> directly under the <!--eof Main Product Image-->.

But I want to tidy up the look of the page. Is there a way to have the additional images display directly to the right of the main image in a horizontal order instead of a vertical order? Because if I have three images they display in vertical order, I don't want that. If you look at the attached image you will also see the additional images display down and to the right. Is there a way to get them to display directly to the right of the main image?

Attachment 13868

6 Mar 2014, 8:41 PM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: Can't get multiple images in product to work

Again, an actual link to the page is infinitely more useful than a screenshot. It will probably be a matter of adjusting your stylesheet, but we can't be sure what to adjust without seeing it live.

7 Mar 2014, 10:11 PM
#11
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Re: Can't get multiple images in product to work

I would like to include an active link but I could not leave my store message up that way. I had to revert it back for the time being.