Forums / General Questions / Only show link if product has more than one image.

Only show link if product has more than one image.

Locked

Views: 1,107

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Jul 2010, 1:09 PM
#1
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Only show link if product has more than one image.

Hi,

I'm working on a site at the moment where some products have more than one image but others don't.

I'd like to be able to display a text link 'Click here for more images' (or something like that) if and only if there is more than one image for a product which will then open up a lightbox. I can do the lightbox bit but don't know how to go about displaying the link only if a product has 2 or more pictures.

Any ideas welcome.

Thanks,
Richard

19 Jul 2010, 1:31 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Only show link if product has more than one image.

There may be a way to do what you're asking. I don't know what it is, but there is a naming convention that will automatically display additional images for a product. https://www.zen-cart.com/tutorials/index.php?article=58

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

12 Sep 2010, 10:04 AM
#3
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Re: Only show link if product has more than one image.

Thanks. What I really need on the product info page is to be able to either give a link to 'view image full size' (if the product has only has image) or 'view additional images' if the product has more than one image. Both would open a light box (which is working fine with ih2)

Thanks
Richard

14 Sep 2010, 5:29 PM
#4
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Re: Only show link if product has more than one image.

Hi,

Forget the question - Jeff from Numinix sorted it out. I'm not sure what he did, though so can't really be much help here!

Richard