Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 
Multithumb found errors on this page:

There was a problem loading image 'plugins/editors/jce/tiny_mce/plugins/filemanager/img/ext/zip_small.gif'
There was a problem loading image 'plugins/editors/jce/tiny_mce/plugins/filemanager/img/ext/zip_small.gif'
There was a problem loading image 'plugins/editors/jce/tiny_mce/plugins/filemanager/img/ext/zip_small.gif'
There was a problem loading image 'plugins/editors/jce/tiny_mce/plugins/filemanager/img/ext/zip_small.gif'
There was a problem loading image 'plugins/editors/jce/tiny_mce/plugins/filemanager/img/ext/zip_small.gif'
There was a problem loading image 'plugins/editors/jce/tiny_mce/plugins/filemanager/img/ext/zip_small.gif'

How to disable mootools in Virtuemart 1.1.x?If Joomla's mootools conflicts with Virtuemart's mootols or there some other conflicts with Virtuemart's mootools, the best way to disable it is to disable it in the Virtuemart template. At least it works in Virtuemart 1.1.5 and Virtuemart 1.1.6.

/components/com_virtuemart/themes/YOURTHEME/theme.php

line about 37

function vmTheme() {
       parent::vmTemplate();
       vmCommonHTML::loadMooTools();
}

If you just comment line:

//##my Commented. It was: vmCommonHTML::loadMooTools();

it will disable virtuemart's mootools, but also virtuemart javascript functionality. I.e. ajax card add. To avoid it you should add two javascript files compatible with Joomla's mootools 1.2.4.

The files are:

  • fixedzip mooPrompt.js  (my fix of native Virtuemart file, my change is marked with ##my, the original development is abandoned)
  • modern version of zip slimbox.js (developer's link)

Or together in one archive: zip mooPrompt.js + slimbox.js 

So unpack this and place the two files into your VM theme:

/components/com_virtuemart/themes/YOURTHEME/js/mooPrompt.js

/components/com_virtuemart/themes/YOURTHEME/js/slimbox.js

And in file /components/com_virtuemart/themes/YOURTHEME/theme.php change

vmCommonHTML::loadMooTools();

width this:

  
        /*##my#2010-12-14 18:49:45 { Fix mootools
        //It was:
        vmCommonHTML::loadMooTools();
        //It became: */
        global $mosConfig_live_site, $vm_mainframe, $VM_LANG;
        if( !defined( "_MOOTOOLS_LOADED" )) {
            $vm_mainframe->addScriptDeclaration( 'var cart_title = "'.$VM_LANG->_('PHPSHOP_CART_TITLE').'";var ok_lbl="'.$VM_LANG->_('CMN_CONTINUE').'";var cancel_lbl="'.$VM_LANG->_('CMN_CANCEL').'";var notice_lbl="'.$VM_LANG->_('PEAR_LOG_NOTICE').'";var live_site="'.$mosConfig_live_site.'";' );
            $vm_mainframe->addScript( VM_THEMEURL .'/js/mooPrompt.js' );
            $vm_mainframe->addStyleSheet( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/mootools/mooPrompt.css' );
            define ( "_MOOTOOLS_LOADED", "1" );
        }
        if( !defined( '_SLIMBOX_LOADED' )) {
            $vm_mainframe->addScriptDeclaration( 'var slimboxurl = \''.VM_THEMEURL.'/js/\';');
            $vm_mainframe->addScript( VM_THEMEURL .'/js/slimbox.js' );
            $vm_mainframe->addStyleSheet( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/slimbox/css/slimbox.css' );
            define ( '_SLIMBOX_LOADED', '1' );
        }
        /*##my#2010-12-14 18:49:45 } */

Comments   

Jay Gin
+1 # Jay Gin 2011-07-24 15:43
Great thanks for the fixedzip mooPrompt.js lost this file I had download some time ago and misplaced where I stored.
Vanessa
+1 # Vanessa 2011-08-08 04:00
Thanks so much for this fix- I have been struggling with a conflict on my Joomla site for the past few weeks and this has finally fixed it!
Bellini
+1 # Bellini 2011-09-10 08:59
Thanks a lot.
mignu
+1 # mignu 2011-09-23 01:35
thank you!
pcelnis
# pcelnis 2011-10-10 17:18
thank you very much, greetings
hair transplant
# hair transplant 2012-03-21 10:53
thanks, this help me to fix my problem with dorp down menu.

thanks

Please register to post comments.

Found a typo? Please select it and press Ctrl + Enter.
FaLang translation system by Faboba
ОУН-УПА: легенда спротиву Українська Дивізія «Галичина» Зиновій Книш: спогади й матеріали до діяння УВО і ОУН Реаніматор електронних текстів Забуттю не підлягає 1917-1991

See a typo?

Select the text block and press

CTRL+Enter

Comments

  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 22.05.2019 12:02
    http://gruz.ml/images/x/2019_05_22_12_00_08_lm.png

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 22.05.2019 11:35
    How can I activate this? It istn't shown on my Joomla! installation (3.9.6) ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 22.05.2019 10:50
    It's implemented http://gruz.ml/images/x/2019_05_22_10_28_53_oa.png

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 22.05.2019 10:15
    Hello Gruz, thank you for this great Joomla!extension. Would it be possible to give the writer the ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 30.04.2019 12:50
    1. You can build mail body using PHP. So you are able to write PHP code in a way to check the language ...

    Read more...