Using Shadowbox with Virtuemart
March 24th, 2010I forgot to mention in my previous post that when using Virtuemart and Shadowbox you end up with double popups if you enable the lightbox option in Virtuemart.
It’s easy to fix just following the instructions on the Virtuemart formum
To summarise you just locate the file administrator/components/com_virtuemart/classes/htmlTools.class.php and find this line at line 899.
$link = vmCommonHTML::hyperLink( $image_link, $text, '', $title, 'rel="lightbox'.$image_group.'"' );
Replace it with this instead.
$link = vmCommonHTML::hyperLink( $image_link, $text, '', $title, 'rel="shadowbox'.$image_group.'"' );