News:

Looking for documentation? Take a look on our wiki

Main Menu

Add to cart button doesn't work, VM 2.0.16

Started by martijnknoops, December 23, 2012, 13:26:09 PM

Previous topic - Next topic

martijnknoops

Hi

I have a problem with the following site http://www.energymm.be/index.php/webshop.
The add to cart button doesn't work.

Can someone help me ?
I think it has something to do with permissions or jQuery.

Many thanks !

bytelord

Hello,

Not permissions issues but related to jsvascript conflict. You are load jquery more that once and also a lot of jquery plugins. This related either your template or extensions you have installed using jquery. One is loaded from k2 (version 1.7.x) and one from mod_superfish_menu or rokbox. Also i think noConflict is not there. You could unload a jquery instance (e.g. from k2) and try again.

<script type="text/javascript" src="/media/system/js/mootools-core.js">
<script type="text/javascript" src="/media/system/js/core.js">
<script type="text/javascript" src="/media/system/js/mootools-more.js">
<script type="text/javascript" src="/media/system/js/modal.js">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js">
<script type="text/javascript" src="/components/com_k2/js/k2.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmsite.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/facebox.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmprices.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js">
<script type="text/javascript" src="/plugins/system/rokbox/rokbox.js">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js">
<script type="text/javascript" src="http://www.energymm.be/modules/mod_superfish_menu/js/superfish.js">
<script type="text/javascript" src="http://www.energymm.be/modules/mod_superfish_menu/js/jquery.responsivemenu.js">
<script type="text/javascript" src="http://www.energymm.be/modules/mod_superfish_menu/js/jquery.hoverIntent.js">
<script type="text/javascript" src="/libraries/gantry/js/gantry-totop.js">
<script type="text/javascript" src="/libraries/gantry/js/gantry-buildspans.js">
<script type="text/javascript" src="/templates/theme1036/js/jQuery.ScrollTo.js">
<script type="text/javascript" src="/templates/theme1036/js/tooltips.js">
<script type="text/javascript" src="/templates/theme1036/js/jquery.tipsy.js">
<script type="text/javascript" src="/templates/theme1036/js/jquery.prettyPhoto.js">
<script type="text/javascript" src="/templates/theme1036/js/jquery.mobilemenu.js">
<script type="text/javascript" src="/templates/theme1036/js/bgstretcher.js">
<script type="text/javascript" src="/templates/theme1036/js/scripts.js">


Use firebug to examine your site code and styling .. also for checking js conflicts ... http://forum.virtuemart.net/index.php?topic=102850.0

Javascript conflicts:
http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
http://dev.virtuemart.net/projects/virtuemart/wiki/JavascriptCSS_Template_Overrides_and_Avoiding_Conflicts_between_Libraries

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!