VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: StormIT on August 30, 2012, 15:33:52 PM

Title: Navigating through images in lightbox
Post by: StormIT on August 30, 2012, 15:33:52 PM
Hi,

I have a couple of questions:

1. When I click on an image thumbnail in v2.0.10 is there anyway that I can then navigate (left and right) between all of the images that there are for a product?

2. Is there anyway to upload say 10 images for a product, but then only display 1 main image and 4 thumbnails, but when clicking on a thumbnail (and the above happens) then all 10 images can be navigated through in the lightbox?

Hope my questions make sense!

Many thanks and regards

Russell
Title: Re: Navigating through images in lightbox
Post by: ivus on August 30, 2012, 23:36:56 PM
I saw this new module this morning. Might be of some use.

http://forum.virtuemart.net/index.php?topic=107066.0 (http://forum.virtuemart.net/index.php?topic=107066.0)
Title: Re: Navigating through images in lightbox
Post by: StormIT on August 30, 2012, 23:54:29 PM
Thanks for the reply Ivus, I don't think that would solve the problem though, as it's a module rather than a 'fix' for the problem.

I think I need it to be very similar to what the module does but needs to be code in the productdetails view.
Title: Re: Navigating through images in lightbox
Post by: ivus on August 31, 2012, 00:08:00 AM
Hi StormIT,

There is a cloud-zoom plugin available, but that probably isn't what you're after either.

You may need to roll your own. Here is a topic that might be useful. I posted some instructions about where you could start to modify the image display area of a product.

http://forum.virtuemart.net/index.php?topic=103306.msg351266#msg351266 (http://forum.virtuemart.net/index.php?topic=103306.msg351266#msg351266)

It is written specifically for the jQuery cloud-zoom effect, but I'm sure you can use the theory behind it to create your own for LightBox...

Good luck.
Title: Re: Navigating through images in lightbox
Post by: StormIT on August 31, 2012, 00:14:10 AM
Thanks very much, I'll give that a go. Thanks for your help.