VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: shakir on November 08, 2011, 17:09:38 PM

Title: Is there a lightbox in vm2??
Post by: shakir on November 08, 2011, 17:09:38 PM
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 :)
Title: Re: Is there a lightbox in vm2??
Post by: PRO on November 08, 2011, 17:53:48 PM
there is a lighbox
Title: Re: Is there a lightbox in vm2??
Post by: shakir on November 08, 2011, 18:09:00 PM
where? how do you enable it?
Title: Re: Is there a lightbox in vm2??
Post by: PRO on November 08, 2011, 18:15:40 PM
its already enabled
Title: Re: Is there a lightbox in vm2??
Post by: shakir on November 08, 2011, 18:38:26 PM
Strange. I did a reinstall of sample products and now its working .
Thanks. :)
Title: Re: Is there a lightbox in vm2??
Post by: achilleas on March 13, 2012, 14:10:13 PM
and how you can turn off lightbox? I haven't found any option for that.
Title: Re: Is there a lightbox in vm2??
Post by: sondarva_niraj on June 29, 2012, 14:22:47 PM
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