Hi.
I can't see a setting to enable a lightbox in vm2?
Clicking a demo product opens up the thumbnail in a plain window.
This is really unprofessional looking.
Is there a way to enable lightbox?
Thanks in advance :)
there is a lighbox
where? how do you enable it?
its already enabled
Strange. I did a reinstall of sample products and now its working .
Thanks. :)
and how you can turn off lightbox? I haven't found any option for that.
Try administrator/componenets/com_virtuemart/helpers/mediahandler.php
there will be condition on line somewhere around 534..
if($lightbox){
$image = JHTML::image($file_url, $file_alt, $imageArgs);
if ($file_alt ) $file_alt = 'title="'.$file_alt.'"';
if ($this->file_url and pathinfo($this->file_url, PATHINFO_EXTENSION) ) $href = JURI::root() .$this->file_url ;
else $href = $file_url ;
$lightboxImage = '<a '.$file_alt.' '.$effect.' href="'.$href.'">'.$image.'</a>';
return $lightboxImage.$desc;
} else {
$root='';
if($absUrl) $root = JURI::root();
return JHTML::image($root.$file_url, $file_alt, $imageArgs).$desc;
}
put $lightbox =1; before if condition to enable it..0 to disable it..Hope it was helpful