Zen Cart Logo
Forums / General Questions / more than one image for a product

more than one image for a product

Locked

Views: 19,565

Results 61 to 80 of 85
This thread is locked. New replies are disabled.
8 Jun 2008, 9:01 AM
#61
saaliha avatar

saaliha

New Zenner

Join Date:
May 2008
Posts:
27
Plugin Contributions:
0

more than one image for a product

hi im getting to the point i want to smash my laptop up :frusty: i keep tryng to add aditional images but doesnt work please can sum1 explain what i am doing wrong ok i go to admin and go edit product and enter nike.jpg in the browse (select the jpg) and go on upload to main directory and then go to my cp and upload nike_1.jpg in the /images i see it come up next to the nike.jpg but it doesnt show up any additional images at all what am i doing wrong i also added it to large and medium using the advice to put MED N LRG at the end but nothing jus shows 1 image help :cry:

8 Jun 2008, 6:17 PM
#62
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: more than one image for a product

saaliha:

hi im getting to the point i want to smash my laptop up :frusty: i keep tryng to add aditional images but doesnt work please can sum1 explain what i am doing wrong ok i go to admin and go edit product and enter nike.jpg in the browse (select the jpg) and go on upload to main directory and then go to my cp and upload nike_1.jpg in the /images i see it come up next to the nike.jpg but it doesnt show up any additional images at all what am i doing wrong i also added it to large and medium using the advice to put MED N LRG at the end but nothing jus shows 1 image help :cry:

What template are you using?
Understand that some templates (ones you paid $$ for) might have Additional Images disable in the code itself.
That said this thread might be of help.
http://www.zen-cart.com/forum/showthread.php?t=44442

M

9 Jun 2008, 6:18 PM
#63
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: more than one image for a product

I can't get the additional images to appear. Here is what I have done:

Uploaded via FTP:

images/logs/108-CDN.gif

images/medium/logs/108-CDN_MED.gif
images/medium/logs/108-CDN_01_MED.gif

mages/large/logs/108-CDN_LRG.gif
images/large/logs/108-CDN_01_LRG.gif

Main main image (108-CDN.gif) appears no problem in all 3 sizes, but not the additional images. I'm sure it is stupid and small, but what have I done wrong?

http://transportation.actionforms.ca/cart/index.php?main_page=product_info&cPath=182_187_188_196&products_id=2032

9 Jun 2008, 6:48 PM
#64
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: more than one image for a product

There is only 1 medium image ...

Additional SMALL images need to be in the same directory as the original SMALL image ... example:
/images
/images/something

Additional LARGE images need to be in the same directory as the original LARGE image ... example:
/images/large
/images/large/something

A search on calicocat will give you a nice break down on images for this ... :smile:

Also, looking in the tutorials/FAQs or the Wiki will give you additional information on the image system for Zen Cart ...

9 Jun 2008, 7:02 PM
#65
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: more than one image for a product

This really seems very straight forward and far easier than a bunch of the other stuff I have done with Zen, but for some reason I am missing it. I've read the tutorial as well, which makes this even worse :-(

This is what I have changed, with no luck:

images/logs/108-CDN.gif
images/logs/108-CDN_01.gif

images/medium/logs/108-CDN_MED.gif

images/large/logs/108-CDN_LRG.gif
images/large/logs/108-CDN_01_LRG.gif

9 Jun 2008, 8:07 PM
#66
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: more than one image for a product

images/logs/108-CDN.gif <-- this image displays on all sideboxes and listings and works as it should

images/logs/108-CDN_01.gif <-- this image displays on the product _info page at the bottom as an additional SMALL image and it works as it should

images/medium/logs/108-CDN_MED.gif <-- this image displays on the product _info page and works as it should

images/large/logs/108-CDN_LRG.gif <-- this image shows on the product _info page when you click on the MEDIUM image 108-CDN_MED.gif and is working

images/large/logs/108-CDN_01_LRG.gif <-- this image shows on the product _info page when you click on the ADDITIONAL SMALL image 108-CDN_01.gif at the bottom of the page and works as it should

Just what is it that you think is NOT working as I am not seeing anything broken off the top of my head ... :unsure:

9 Jun 2008, 8:39 PM
#67
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: more than one image for a product

Ok, I'm a knob. It's working.... Thanks. For some reason I thought it automatically displayed at the top, so I didn't even look around. I hate it when people do that... sorry.

Thanks for the quick help!! Very much appreciated!!!!

10 Jun 2008, 5:14 PM
#68
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: more than one image for a product

http://transportation.actionforms.ca/cart/index.php?main_page=product_info&cPath=182_187_188_196&products_id=2032

Ok, now a question about the additional image thumbnail size. It is currently working OK (layout problems, but I'll work on that later), but I would like it to be more like 150x150 rather than the 75x75. I tried just uploading the graphic in the larger size, but it didn't work.

Ideas.... suggestions???

11 Jun 2008, 2:27 AM
#69
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: more than one image for a product

margecc:

http://transportation.actionforms.ca/cart/index.php?main_page=product_info&cPath=182_187_188_196&products_id=2032

Ok, now a question about the additional image thumbnail size. It is currently working OK (layout problems, but I'll work on that later), but I would like it to be more like 150x150 rather than the 75x75. I tried just uploading the graphic in the larger size, but it didn't work.

Ideas.... suggestions???

What is your image size sitting?
Admin--> Configuration--> Images

Additional images size is based on the Small Image size sitting.
This will effect all your small images that use this setting.

M

11 Jun 2008, 12:34 PM
#70
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: more than one image for a product

That is what I figured, but is there any way around that? A bit of code that could be used to make it larger than the small image?

11 Jun 2008, 2:52 PM
#71
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: more than one image for a product

Ok that was stupid easy, if I had just thought about it for a minute.

Just in case anyone else wants to do it. I just made the graphic the size I wanted it (150 x 150 px) and uploaded it to my directory. In the additional_images.php files I just removed the references to SMALL_IMAGE_WIDTH and it worked perfectly.

12 Jun 2008, 4:23 AM
#72
mollymagahy avatar

mollymagahy

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: more than one image for a product

Hi, sorry if this is a really stupid question, I know it's been answered in this thread but I just can't understand it, or it's not working or something. I want to move my additional images to be just below my main image, I moved the <!--bof Additional Product Images -->

<?php block to just under the main image block in tpl_product_info_display.php but that put the additional images beside the main image with everything else below that, so I moved the <!--bof Additional Product Images --> <?php block to below the product name, product price and product description block and now the images are sort of in the right place except they are centred on the page and I want the directly below the main image. This is were I feel really stupid, I know one of the posts said to change the stylesheet > The stylesheet takes care of the fine positioning: > Code: > > /*Image Display*/ > ... > > #productImagesWrapper { > width:200px; > } > > #productMainImage { > width:200px; > } > > #productMainImage img { > margin: 1em 0em 3em 0em ; > float: right; > } > #productAdditionalImages img { > margin: 1em 0em 1em 0em ; > float: right; > } but I can't find the code referred to on my stylesheet, is there more than one stylesheet? What is the exact file I need to change? Sorry again if this is really dumb of me but I really don't know anything about php, or even html for that matter, learning as I go here so any help would be really really appreciated. here's a link to my page <http://unique-jewellery.com.au/shop/index.php?main_page=product_info&cPath=3&products_id=41>
12 Jun 2008, 5:14 PM
#73
gjh42 avatar

gjh42

Black Belt

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

Re: more than one image for a product

Those stylesheet declarations are to be added if they are not already present.

The productImagesWrapper div needs to be added around the main image and additional images code blocks in tpl_product_info_display.php, and this together with the stylesheet floats will keep them all together in a column.

4 Apr 2009, 9:23 PM
#74
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: more than one image for a product

HI,

Sorry for digging up an old thread.

I have a few issues with moving my additional images under the main one.

The title and description are now under my images. I would like the beside it. How do I do that?

Daniel

5 Apr 2009, 7:36 PM
#75
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: more than one image for a product

Can anyone help me please?

6 Apr 2009, 9:41 AM
#76
gjh42 avatar

gjh42

Black Belt

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

Re: more than one image for a product

Find in your stylesheet

#productlisting {
	float: right;
}

and delete it.

7 Apr 2009, 11:35 AM
#77
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: more than one image for a product

Hi

Thanks for the reply but I'm still having a problem with it even after removing that code.

Daniel

7 Apr 2009, 2:53 PM
#78
gjh42 avatar

gjh42

Black Belt

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

Re: more than one image for a product

What kind of problem are you having? It is behaving normally now. Were you trying to get the description etc. to stay in a column to the right of the image and not wrap? Then add to your stylesheet:```
#productlisting {
margin: 0 0 0 20em;
}

7 Apr 2009, 11:13 PM
#79
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: more than one image for a product

I would like the desription and title to be right beside the photos and not under neath them.

8 Apr 2009, 6:46 AM
#80
gjh42 avatar

gjh42

Black Belt

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

Re: more than one image for a product

You have all of the code for the right side (including the product name) after all of the images, and I believe there is a <br class="clearBoth" /> in the additional images code that forces all following elements to stay below it. (It only happens when there are additional images for a product.) Try finding and eliminating that.