VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: jjk on December 31, 2011, 18:12:32 PM

Title: Revision 5183 - Issue with lightbox
Post by: jjk on December 31, 2011, 18:12:32 PM
J1.7.3/VM2 SVN revision 5183
Revision 5183 trunk/virtuemart/components/com_virtuemart/views/productdetails/tmpl/default.php appears to have killed my lightbox. The productdetails view loads normally at first, but when I hover over any image with the mouse pointer, the main image reverts to category browse size and the lightbox doesn't work at all.

Title: Re: Revision 5183 - Issue with lightbox
Post by: jaminv on December 31, 2011, 19:45:28 PM
Open it up in Chrome and look at the developer information for the page.  If you go to the script tab, it will show any scripts which have errors in them.  That's probably the problem.  I ran into a similar problem, and chrome helped me locate the script error that was preventing all javascript from working.
Title: Re: Revision 5183 - Issue with lightbox
Post by: jjk on December 31, 2011, 20:49:27 PM
I use the Firefox plugin Firebug for this. This one looks to me more like the developer has accidentially cut out a little bit too much code  ;) (I can see the difference between the previous version of the file, which you probably have, and the one in the SVN trunk. The latter was just updated two days ago.
However, I can't correct errors myself because I'm still php illiterate  :'(
Title: Re: Revision 5210 - Issue with lightbox
Post by: jjk on January 03, 2012, 22:22:24 PM
J1.7.3/VM2 SVN revision 5215 - commit 5210
I still have an issue with the image behavior with the revised file ...\components\com_virtuemart\views\productdetails\tmpl\default.php.
When I hover with the mouse pointer over the second image's mini-thumb (the link for the lightbox displaying a large image), the primary image collapses and the thumbnail from the resized directory is loaded and stays at there instead of the product-image.

Firebug tells me this:

jQuery(.main-image img) special check failed
jquery.lint.js (line 99)
More info:
Selector: .main-image img Selectors should be as specific as possible, not overqualified and never "class only"
jquery.lint.js (line 119)
Collection: []

[attachment cleanup by admin]