VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ppwd on December 06, 2012, 23:55:07 PM

Title: 402 Payment Required Error (when clicking on add to cart)
Post by: ppwd on December 06, 2012, 23:55:07 PM
Hi guys, I originally posted a thread a few months back re: this issue but had to go overseas so didn't get a chance to really take a look at it.

The problem:

I have a Joomla install with VM.  When i click on the add to cart button on the front-end, nothing works.  If i look in Firebug I get an error in the console for the GET command (402 Payment Required), that appears to be in jquery.min.js line 18.  However, if i disable the VM Jquery Firebug tells me jquery is not found, and if i disable the google jquery it tells me the same error (above) as it does if both are enabled.

I've got the latest version of Joomla installed (2.5.8) and also the most recent VM (2.0.14).
I have also tested this on a default template to see if that is the issue, and still have the same problem.

In theory, this SHOULD work.

The original thread: http://forum.virtuemart.net/index.php?topic=102854.0

Please help!

Thanks,

Sam
Title: Re: 402 Payment Required Error (when clicking on add to cart)
Post by: bytelord on December 07, 2012, 00:18:12 AM
Hello,

It seems that it could be a javascript conflict, plese check you site header if is loading jquery instanses more than one and disable them, leave only one (e.g. vm2 jquery, or any 1.7.x version). Use firebug to check your site header.

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

Also you could provide a live url to test it also.

Regards