0
Welcome Guest! Login
0 items Join Now

Gantry Mootools conflict with VirtueMart?

    • morktron's Avatar
    • morktron
    • Jr. Rocketeer
    • Posts: 41
    • Thanks: 0

    Gantry Mootools conflict with VirtueMart?

    Posted 14 years 11 months ago
    • Hi, it looks like there is a Mootools conflict between Gantry / Quasar and VirtueMart. If the product image Lightbox is enabled in VirtueMart it just opens the image in the same window. If you switch to a default Joomla template the Lightbox works again.

      In index.php I changed:
      <head>
          <?php 
              $gantry->displayHead();
              $gantry->addStyles(array('template.css','joomla.css','style.css','typography.css'));
          ?>
      </head>

      to this:
      <head>
          <?php 
              $gantry->displayHead();
              $gantry->addStyles(array('template.css','joomla.css','style.css','typography.css'));
          ?>
            <script type="text/javascript" src="<?php echo $tmpTools->baseurl(); ?>/components/com_virtuemart/js/mootools/mooPrompt.js"></script>
        <script type="text/javascript" src="<?php echo $tmpTools->baseurl(); ?>/components/com_virtuemart/js/slimbox/js/slimbox.js"></script>
      </head>

      but then I just get a white screen. Does anyone have a solution to this?
    • Last Edit: 9 years 4 months ago by Kat05.
    • Reta's Avatar
    • Reta
    • Newbie
    • Posts: 4
    • Thanks: 0

    Re: Gantry Mootools conflict with VirtueMart?

    Posted 14 years 11 months ago
    • Just to disable the call for MooTools in the file "administrator/components/com_virtuemart/classes/htmlTools.class.php"

      line 794:
      $vm_mainframe->addScript( $mosConfig_live_site .'/components/'.VM_COMPONENT_NAME .'/js/mootools/'.$version );

      Put // before that line or just delete it:
      //$vm_mainframe->addScript( $mosConfig_live_site .'/components/'.VM_COMPONENT_NAME .'/js/mootools/'.$version );
    • morktron's Avatar
    • morktron
    • Jr. Rocketeer
    • Posts: 41
    • Thanks: 0

    Re: Gantry Mootools conflict with VirtueMart?

    Posted 14 years 10 months ago
    • Thanks Reta your are a legend! :) . It works beautifully and is such a simple solution.

      Now I can continue using Gantry as my Joomla template framework of choice. Thanks again :)
  • Re: Gantry Mootools conflict with VirtueMart?

    Posted 14 years 3 months ago
    • Hi, I've just modifying htmTools.class.php file as you said Reta but, however, I've the same problem of morktron (If the product image Lightbox is enabled in VirtueMart it just opens the image in the same window). How can I fix this problem? I've read a lot of forum and nobody can help me :(
  • Re: Gantry Mootools conflict with VirtueMart?

    Posted 14 years 3 months ago
    • I found that the JS file in GANTRY: mootools-1.2.5.js conflicts with some VM features such as Lightbox, and the model window in "Add to cart". If I stop loading that js file, these VM features work.
      What is the solution? (Reta's solution doesn.t work)
      Thanks!
  • Re: Gantry Mootools conflict with VirtueMart?

    Posted 14 years 2 months ago
    • yep, it's the 1.2.5 that causes the problem. How would I disable this script JUST for virtuemart. Everything else obviously needs the mootools ( rokbox, etc ).

      Something like an IF/ELSE command for the mootools.1.2.5, so if component = virtuemart, don't load, else load the script. Should be a really basic code, no?
  • Re: Gantry Mootools conflict with VirtueMart?

    Posted 14 years 2 months ago
    • after the fix everithing works fine until the new patch for Virtuemart 1.1.7a now is giving me the error again, some advice please :cry:
  • Re: Gantry Mootools conflict with VirtueMart?

    Posted 14 years 1 month ago
    • Thanx everybody for this fix ;-)

      I was looking for that problem since almost a week !!!!

      I hate IE !!!

      Have a nice day :D
  • Re: Gantry Mootools conflict with VirtueMart?

    Posted 13 years 9 months ago
    • components/com_virtuemart/js/mootools
      cp -rapf mootools-release-1.11.js mootools-release-1.11.js.old
      edit mootools-release-1.11.js and empty it (remove all lines of text)
      This allows you to use a newer version of mootools and the virtuemart stuff seems to still work.
  • Re: Gantry Mootools conflict with VirtueMart?

    Posted 13 years 7 months ago
    • Hi all, I came across this post whilst having the same/similar issues with the Camber template.The fixes above did not work, but after viewing another thread, I enabled the Mootools Upgrade plugin and everything worked fine after that. Maybe useful... Nick

Time to create page: 0.121 seconds