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

    Berndi Berndi 30.06.2019 11:45
    The fields %TO_NAME% and %TO_USERNAME% are empty

    Read more...

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

    Berndi Berndi 30.06.2019 11:43
    My fault, I made it

    Read more...

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

    Berndi Berndi 30.06.2019 10:46
    I did. Now I'm asking me how to put the surename into the email... :-|

    Read more...

     
  • NavigationAry - navigate between Joomla menu items like between articles using "prev - next"

    Berndi Berndi 29.06.2019 15:59
    I also miss content in %TO_NAME%

    Read more...

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

    Berndi Berndi 29.06.2019 15:15
    Hi gruz, I have the problem, that when I use the %AUTHOR% tag, the plugin dosen't send the author ...

    Read more...