News:

Looking for documentation? Take a look on our wiki

Main Menu

Is there a lightbox in vm2??

Started by shakir, November 08, 2011, 17:09:38 PM

Previous topic - Next topic

shakir

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 :)

PRO


shakir


PRO


shakir

Strange. I did a reinstall of sample products and now its working .
Thanks. :)

achilleas

and how you can turn off lightbox? I haven't found any option for that.

sondarva_niraj

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
Virtuemart is like Girlfriend ! eats out your brain, yet you can't resist to love it..