Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Why won't my multiple images show up?

Why won't my multiple images show up?

Locked

Views: 1,517

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
10 Dec 2008, 2:59 PM
#1
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Why won't my multiple images show up?

Hi,

I've followed the tutorial here:
https://www.zen-cart.com/tutorials/index.php?article=58

From the product page in the zen cart admin I've uploaded 50mm_clip_01.jpg as my base image to the main image directory in my root.

I've then uploaded the following files to my /images folder in the root:
50mm_clip_02.jpg
50mm_clip_03.jpg
50mm_clip_04.jpg

Now, should I see all four images on my product description page? Because I'm not. Or have I misunderstood the tutorial in some way? I'm totally stumped ...why is it that the simple things always become the most time consuming?! :) :frusty:

Thanks!

10 Dec 2008, 3:05 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

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

Re: Why won't my multiple images show up?

You've got TWO underscores in your image names - you must have only ONE, to designate the additional images:

Original image

50mm_clip_01.jpg

Should be:

50mm-clip.jpg

Additional images currently:

50mm_clip_02.jpg
50mm_clip_03.jpg
50mm_clip_04.jpg

Should be

50mm-clip_01.jpg
50mm-clip_02.jpg
50mm-clip_03.jpg

10 Dec 2008, 3:23 PM
#3
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Why won't my multiple images show up?

Thanks for the lightning fast reply - much appreciated. Works perfectly! I assume I can move the position of the additional images from within the template so they're below the base image?

Thanks!

10 Dec 2008, 3:42 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

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

Re: Why won't my multiple images show up?

The file that controls the position of elements on the Product Information page is:

/includes/templates/template_default/templates/tpl_product_info_display.php

The page elements are designated (enclosed) by <!--BOF xxxx --> and <!-- EOF --> comment tags.

You can CUT these from the code, and PASTE them again above or below other elements.

When you've made the edits, save the file in your CUSTOM template folder:

/includes/templates/CUSTOM/templates/tpl_product_info_display.php

Additionally, use the CSS to control finer positioning.

10 Dec 2008, 3:52 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

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

Re: Why won't my multiple images show up?

... just to mention additional image names...

I understand it's OK to have more than one underscore ... the issue is on how ZC recognises what base image an additional image relates to.

In your original case...

50mm_clip_01.jpg (Main Image)
50mm_clip_02.jpg
50mm_clip_03.jpg
50mm_clip_04.jpg

... would probably STILL work if

50mm_clip.jpg (Main Image)
50mm_clip_01.jpg
50mm_clip_02.jpg
50mm_clip_03.jpg

What ZC does is find the FULL name of the main image first:

50mm_clip.jpg

... which is says the RED part above, is the BASE NAME... Then (for example) additional images have the base name + _01.jpg , etc...

50mm_clip****_01.jpg

... and so on.

18 Dec 2008, 11:40 AM
#6
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Why won't my multiple images show up?

I have the same problem.
I uploaded the main image as yellowdupatta.jpg
and the other were yellowdupatta_01.jpg and yellowdupatta_02.jpg
but ZC still shows only the one picture.
kindly help me.:clap: