Hello,
http://www.yootheme.com/support/question/50417#answer-143198
I have virtuemart 2.0.24 on yoo_lava 1.0.3 (warp 7.1.7) with joomla 2.5.14
I turn off jQuery because Warp 7 already loaded and because the accordion joomla menu is not working on pages that the Virtumart js files are loaded.
It looks like that doesn't work anymore in recent versions of Virtuemart when I turn off jQuery, because of a bug.
[22:26:14,396] ReferenceError: jQuery is not defined @ /components/com_virtuemart/assets/js/vmsite.js:112
[22:26:14,411] ReferenceError: jQuery is not defined @ /components/com_virtuemart/assets/js/facebox.js:337
[22:26:14,411] ReferenceError: jQuery is not defined @ /components/com_virtuemart/assets/js/vmprices.js:150
But jquery is define by Warp 7 ?
How Do I Fix It?
Thanks for all,
Mathieu
You need to run virtuemart jquery
If there is a conflict with Warp 7 then that is unlikely to be solved by VM
jQuery must be loaded before the other VM js scripts load. That is what the error message is telling you. VM does that automatically - unless you turn it off................
Hello,
<script src="/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
<script src="/components/com_virtuemart/assets/js/facebox.js" type="text/javascript"></script>
<script src="/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/modal.js" type="text/javascript"></script>
<script src="/media/widgetkit/js/jquery.js" type="text/javascript"></script>
<script src="/cache/widgetkit/widgetkit-8b4450c4.js" type="text/javascript"></script>
How can I change the order ?
Thanks for all,
Mathieu
Turn on VM jQuery then it will laod before vmsite.js like this:
<script src="/vm24/components/com_virtuemart/assets/js/jquery.min.js" type="text/javascript"></script>
<script src="/vm24/components/com_virtuemart/assets/js/jquery.noConflict.js" type="text/javascript"></script>
<script src="/vm24/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
Disable the widgetkit jQuery or consider using jQueryEasy - http://forum.virtuemart.net/index.php?topic=111843.0
JenkinHill, thank you!
I too was running a yootheme template (nano3, with uikit -no widgetkit) and had the exact same problem as Mathew. If I disabled the Virtuemart jQuery in the BE, the 'add to cart' and 'quantity' functionalities were being lost. If I switched it on, they worked fine but then I had issues with my template such as dropdowns not working (e.g. my 'main accordion menu') etc. Through my reading I realized that this is very common with YooTheme templates and unfortunately no solution has been given yet by them (apparently the conflict existed for some time now, mostly with their widgedkit).
I just wanted to share my experience and how JenkinHill's solution above of simply installing the 'jQuery Easy', sorted all my problems out.
Once again, thanks