VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Lexiboy on November 19, 2012, 16:17:52 PM

Title: double product image in lightbox
Post by: Lexiboy on November 19, 2012, 16:17:52 PM
using Joomla 2.5.6 and vm 2.0.4

Hello All,

I have a problem that clicking on a thumbnail shows a lightbox with the image in it twice, as included image shows:

(http://www.lemongrasshouse.ru/images/double.jpg)                     

opening it a second time often shows the pic correct. It happens in categories as well as on product detail pages. (
http://www.lemongrasshouse.ru/internet-magazin/by-aroma/white-orchid)

I use this code to show the thumbnail:

echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'"', TRUE, 'class="modal"');

Can someone point me to a solution?

I have seen this question often, but never an answer :(
Title: Re: double product image in lightbox
Post by: bytelord on November 19, 2012, 16:37:27 PM
Hello,

This is not related to vm, you are using a custom template which a lot of overrides, both html and css. Checking your site code with firebug you are calling some js files from the administrator/component area ... 
Try to disable some components, i am not sure where is the conflict.
Also you have a jquery conflict, use firebug to examine it.

Regards
Title: Re: double product image in lightbox
Post by: Lexiboy on November 20, 2012, 16:28:34 PM
Quote from: bytelord on November 19, 2012, 16:37:27 PM
Hello,

This is not related to vm, you are using a custom template which a lot of overrides, both html and css. Checking your site code with firebug you are calling some js files from the administrator/component area ... 
Try to disable some components, i am not sure where is the conflict.
Also you have a jquery conflict, use firebug to examine it.

Regards

Thank you for your reply. I did some major cleaning. I could not solve the problem direclty. So I decided to solve it by customizing the template. I now use jQuery.lighbox() instead.
Title: Re: double product image in lightbox
Post by: bytelord on November 20, 2012, 16:32:03 PM
Nice then. :)

Regards