VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: achilleas on March 14, 2012, 13:04:08 PM

Title: How to turn off lightbox
Post by: achilleas on March 14, 2012, 13:04:08 PM
I turned off (for testing) all the "Css Styles & Javascripts" in configuration
Using the VirtueMart CSS    OFF
Using the Virtuemart jQuery   OFF
Using the product Scripts    OFF
Using the Script ajax Countries / Regions   OFF

but when I click on a product image its shows up in a modal box.

How can I turn off light box?

------------------------
VM adds these lines in template scripts

vmCartText = ' was added to your cart.' ;
vmCartError = 'There was an error while updating your cart.' ;
loadingImage = '/joomla/components/com_virtuemart/assets/images/facebox/loading.gif'  ;
closeImage = '/joomla/components/com_virtuemart/assets/images/facebox/closelabel.png' ;
faceboxHtml = '<div id="facebox" style="display:none;"><div class="popup"><div class="content"></div> <a href="#" class="close"></a></div></div>'
window.addEvent('domready', function() {

         SqueezeBox.initialize({});
         SqueezeBox.assign($$('a.modal'), {
            parse: 'rel'
         });
      })

--------------------------------
Is there a way to turn these off?
Title: Re: How to turn off lightbox
Post by: achilleas on March 14, 2012, 13:21:56 PM
I see that the class "modal" is hardcoded into templates. So maybe  template override will do the job.
Title: Re: How to turn off lightbox
Post by: jenkinhill on March 14, 2012, 13:40:43 PM
Yes, edit the default_images.php file in VM2.0.2 or later.