News:

Looking for documentation? Take a look on our wiki

Main Menu

"Add to cart" works only when you Refresh the page

Started by Griffins, May 20, 2013, 14:40:33 PM

Previous topic - Next topic

Griffins

i'm having a strange kind of error ,everything's working fine but when you buy the item or click on add to cart nothing happens the cart is empty and no tem is added to the cart, but when you refresh the page the item appears in the cart.
i don't want my customers to refresh the page again and again.

joomla v 2.5.8
vmart v2.0.20b
http://dextersoftwarelab.com/index.php/cust

[attachment cleanup by admin]

AH

#1
You have a mootools problem

Use firebug console to see it and the scripts you are loading
Regards
A

Joomla 4.4.5
php 8.1

jenkinhill

You are loading a lot of JavaScript including 3 versions of jQuery:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>
<script src="/media/widgetkit/js/jquery.js" type="text/javascript"></script>
<script src="http://dextersoftwarelab.com/modules/mod_rizlogin/js/jquery.min.js" type="text/javascript"></script>

Firebug in Firefox throws up this  error:

SyntaxError: missing name after . operator
http://static.olark.com/jsclient/application.js?v=110812c1f670765f01c6f38735dcf1d3
Line 492

And IE10 debugger shows these:

SCRIPT1010: Expected identifier
cust, line 1279 character 129
SEC7118: XMLHttpRequest for http://739-events.olark.com/nrpc/c?c=create&u=http%3A%2F%2Fdextersoftwarelab.com%2Findex.php%2Fcust&r=&s=1479-281-10-7840&v=qnqnQUxvWS0M7BSHE9KjEOr374AkAUAK&i=eYRYtiGSpO0M7BSHE9KjEOArKGA2kUoT&g=ALL&q=precache09354339671864524&j=o0&version=loader-precache required Cross Origin Resource Sharing (CORS).
cust
SCRIPT438: Object doesn't support property or method 'fancybox'
jquery.min.js, line 16 character 13143
 
Looks like these issues are stopping the AJAX refresh for the cart.

Strip out the stuff you don't need and then maybe try jQueryEasy  -  http://forum.virtuemart.net/index.php?topic=111843.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

johnny74

I unchecked "Display modal popup upon 'Add to cart'" in configuration/Checkout and clicking "add to cart takes you to the cart, but has a "continue shopping" link.

Griffins

Okay thanks for the quick reply :)
i'll check these javascript issues that are stopping the AJAX refresh for the cart and strip out the stuff that i don't need but before this i just want to tell you and need your gaudiness that i'm using
VirtueMart components: v2.0.20b
and the cart's requirement that i'm using is
VirtueMart: v2.0.x to 2.0.18a.
is that is a serious problem stopping AJAX refresh?
Regards


Griffins

Quote from: johnny74 on May 21, 2013, 01:51:22 AM
I unchecked "Display modal popup upon 'Add to cart'" in configuration/Checkout and clicking "add to cart takes you to the cart, but has a "continue shopping" link.
okay let me check this,i'll see what happens and let you know okay i'll get back to you

Griffins

Hi, my that problem solved my cart is now working fine,
http://dextersoftwarelab.com/index.php/cust
items are going to cart as well, now i have an another problem here, but now my client want to use this package in "fancybox" but unfortunately i'm have same problem in it (in fancybox), can i do this in it?
http://dextersoftwarelab.com/index.php/web-design-development/custom-web-development