Forums / General Questions / Is it possible to have multiple pictures of your product?

Is it possible to have multiple pictures of your product?

Locked

Started by velvita on 6 Jul 2007, 9:30 PM · Views: 2,401

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
6 Jul 2007, 9:30 PM
#1
velvita avatar

velvita

New Zenner

Join Date:
Jun 2007
Posts:
23
Plugin Contributions:
0

Is it possible to have multiple pictures of your product?

I have clothing pics and want to have a front and back views.
Is it possible to have multipule pictures of your product?

Cheers
velvita

6 Jul 2007, 10:26 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Is it possible to have multiple pictures of your product?

You can have as many additional images as you want.

The trick is to name them correctly, and load them in the right locations. The How do I add multiple images to a product? article in FAQ/tutorials gives a good description of this.

After you have added your main image in the product entry/editing page, ftp the additional images to your /images/ folder, and large and additional large images to your /images/large/ folder. Zen Cart will automatically know what to do with them.

10 Aug 2007, 4:06 AM
#3
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

Is there a way that you can bulk input a certain second image to appear per category or brand for each product?

10 Aug 2007, 11:46 AM
#4
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

is there a mod so that you can just upload the first image as normal when adding the product, then edit and upload a second image and it will add the aditional image?


13 Aug 2007, 8:51 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Is it possible to have multiple pictures of your product?

You don't need a mod to get the second image. Just name your second image identically to your main, with something added to the end of the name (productimage.jpg --> productimage2.jpg), and it will automatically appear once you put it in your /images/ folder.

If you want to work exclusively through the admin product entry page, upload your additional images first and your main image last.

A single stock additional image won't work with the code as is; you will need an image file for each product with the appropriate filename.
If you have a lot of products that need this, you could add some code to tpl_product_info_display.php to insert an image based on the cPath...

17 Aug 2007, 4:46 PM
#6
sstemplates avatar

sstemplates

New Zenner

Join Date:
Aug 2007
Posts:
5
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

I want to do the opposite. I want only one image to appear not all the ones that have similar names, but I don't want to rename my files to all be different. Right now I have all my files as template_#.jpg, but when I add a new product it pulls up all the images on the product page, but they should not be appearing. Do you have any suggestions on what I can do? Here is the link:

http://webdesignworkz.com/sitespinnertemplates/index.php?main_page=product_info&cPath=1_3&products_id=11

gjh42:

You don't need a mod to get the second image. Just name your second image identically to your main, with something added to the end of the name (productimage.jpg --> productimage2.jpg), and it will automatically appear once you put it in your /images/ folder.

If you want to work exclusively through the admin product entry page, upload your additional images first and your main image last.

A single stock additional image won't work with the code as is; you will need an image file for each product with the appropriate filename.
If you have a lot of products that need this, you could add some code to tpl_product_info_display.php to insert an image based on the cPath...

17 Aug 2007, 4:53 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Is it possible to have multiple pictures of your product?

The images have two methods of working for something like this ...

/images

--- vs ---

/images/something

In /images template3 would own filenames like template33 template300 template3abc ...

In the subdirectory /images/something template3 would only own template3_20 or template3_abc or template3_12

By using the subdirectory, the matching images are considered Additional Images ONLY if there is the underscore following the base image filename ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Aug 2007, 12:12 AM
#8
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

I think I'm gonna cry. :cry:

I've been working on this for such a long time and can't seem to get it to work. I have uploaded my images in the various folders

/images/hoodies/alpine.jpg
/alpine_01.jpg
/alpine_02.jpg
/alpine_03.jpg

images/large/hoodies/alpine_01_LRG.jpg
/alpine_02_LRG.jpg
/alpine_03_LRG.jpg

images/medium/hoodies/alpine_MED.jpg

I'm still not seeing any additional images under my product info. Does it matter that I didn't resize them yet because I just wanted to see it work first?

My website is
http://www.texasjackrussells.com/shop

any help would be so appreciated....

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

19 Aug 2007, 3:09 AM
#9
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

OK, I just took a look at your site.

You do not have the images in the proper directories...

You spelled it out correctly earlier in this thread, but when I look at the source code, it is not.

So it should be:

images/hoodies/alpine.jpg
images/hoodies/alpine_01.jpg
images/hoodies/alpine_02.jpg
and so on

Then:

images/large/hoodies/alpine.jpg
images/large/hoodies/alpine_01.jpg
images/large/hoodies/alpine_02.jpg

19 Aug 2007, 3:30 AM
#10
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

BobDog,

So I don't need to use LRG in the file name?

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

19 Aug 2007, 6:57 AM
#11
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

Yes you do need that. Sorry I forgot to type that in!

19 Aug 2007, 1:22 PM
#12
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

I'm using a template monster free template that I customized the look. I think it might be something in the original template that is keeping me from success!! I have contacted their help desk. I had a few other issues as well that just seem to stem from that as well.

Thanks so much for your help.

Vicky

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

19 Aug 2007, 4:11 PM
#13
gjh42 avatar

gjh42

Black Belt

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

Re: Is it possible to have multiple pictures of your product?

That TM template at least does "see" the additional images section in tpl_product_info_display.php, as evidenced by view source:

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

There's no telling why it's not displaying them if they are now in the right places, without actually seeing that part of the PHP code.

Can you switch to the Classic template and check if they display?

19 Aug 2007, 4:26 PM
#14
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

Hi,

I did exactly that. I switched to traditional defualt template and everything works great. Now how can I do this with the template? Can I grab the tpl_product_info_display.php from default and over write the one in my custom template?

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

19 Aug 2007, 5:06 PM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: Is it possible to have multiple pictures of your product?

No, that's pretty certain to break your product info page. For starters, compare the additional images sections of the /template_default/ and TM tpl_product_info_display.php files. If there is any difference, post the TM section here and we may be able to suggest a fix. TM should really be doing this for you, so make sure you also tell them specifically what is going wrong and maybe they will "get" their erroneous approach and eventually correct it.

19 Aug 2007, 5:58 PM
#16
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Is it possible to have multiple pictures of your product?

THANK YOU!

I got my WinMerge and compared the two. I found the problem. The code for the additional images was commented out. I only changed that line and everything is working super! I have a few more things I would like to fix, but by far this was the real pickle for me!! I don't know why I didn't even consider installing the default template to make sure what I was doing was working... sheesh... what a dummy!

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

19 Aug 2007, 8:15 PM
#17
gjh42 avatar

gjh42

Black Belt

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

Re: Is it possible to have multiple pictures of your product?

That's... disgusting! So TM went out of their way to deliberately disable a standard feature? I can understand if not condone bypassing something to make your customizing work easier, but...
I hope you complain to them about that - it's something they could fix without even changing their screwed-up approach to template construction.