VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: siobhano on November 22, 2014, 23:53:48 PM

Title: Add to cart button suddenly stopped working . PLEASE HELP
Post by: siobhano on November 22, 2014, 23:53:48 PM
My Add to cart button has stopped working. It used to work just fine and I am not sure what has changed.

Based on reading thru forum posts I believe that I must have a JS conflict. I have tried to mitigate that by installing JQuery easy.

Here is source from offending page that references the various JS script loads
  <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/system/js/mootools-more.js" type="text/javascript"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>
  <script src="/plugins/system/jqueryeasy/jquerynoconflict.js" type="text/javascript"></script>

  <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="/components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>

Is it a JS conflict that is causing the add to cart button not to work ?
 
  Not sure where to go from here or how to debug with firebug.  Any guidance would be very much appreciated
 
  Site name : www.thoughtwraps.com

Software and Platform Info :

VirtueMart 2.0.20b
Joomla! Version    Joomla! 2.5.9 Stable


Running on Server :
MySQL Version    5.5.32
PHP Version    5.3
____________________________________
Title: Re: Add to cart button suddenly stopped working . PLEASE HELP
Post by: siobhano on November 23, 2014, 00:32:05 AM
seems like disabling the "modal pop up" upon Add to Cart resolves the problem ?

Not sure why. This feature worked fine in earlier versions

At least I have a functioning add to cart button again.

Still VERY appreciative of any light that anyone might be able to throw on this topic 

I would like to re enable the popup since customers seem to like it as part of check out experience
Title: Re: Add to cart button suddenly stopped working . PLEASE HELP
Post by: Margriet on November 23, 2014, 09:48:18 AM
Start by updating Joomla and VM. Both versions are outdated.
Title: Re: Add to cart button suddenly stopped working . PLEASE HELP
Post by: jenkinhill on November 23, 2014, 11:46:14 AM
I don't think that your old version of VM will work properly with jQuery 1.7 - it "shipped" with jQuery 1.6.4  http://forum.virtuemart.net/index.php?topic=118683.0

jQuery conflicts should be considerably reduced with the scripts used in VirtueMart 3 

Your PHP version is very old, too. Minimum should be 5.3.10 and preferably PHP5.4+
Title: Re: Add to cart button suddenly stopped working . PLEASE HELP
Post by: siobhano on November 23, 2014, 20:47:43 PM
Thank you for the replies. I will take a deep breath and upgrade to Vm 3. I appreciate the guidance
Title: Re: Add to cart button suddenly stopped working . PLEASE HELP
Post by: jenkinhill on November 23, 2014, 21:13:38 PM
Don't forget the basic rule. Test all updates on a backup of the live site.