VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: AliveMedia on February 14, 2013, 20:26:50 PM

Title: Shopping cart not updating AFTER checkout and payment
Post by: AliveMedia on February 14, 2013, 20:26:50 PM
Hi, we've ran several tests on this site that hasn't launched yet.  The problem is there is a cart at the top of the page that is the virtuemart shopping cart.  It has a number that shows the number of items in the cart.  However, when you checkout and even pay for the order using paypal, the cart doesn't empty as it is still showing the number of items in the cart.  If you click the "checkout" link, it shows the cart with items still in it.

http://ladeedagifts.com/inde.php

Joomla 2.5.8
VM 2.0.18a

Caching for Joomla is turned off, btw.  Would greatly appreciate your help as we are looking to do a soft launch very soon.

Thanks,
aj
Title: Re: Shopping cart showing empty
Post by: skul2 on February 16, 2013, 09:01:20 AM
Hi there,

Am using VM 2.0.12 with joomla 2.57, when I clicked on add to cart, my shopping cart is always empty. Is there any solution to this problem.
My site is www.infinitymirrorart.com

Regards
Skul2
Title: Re: Shopping cart not updating AFTER checkout and payment
Post by: jenkinhill on February 16, 2013, 12:36:42 PM
@Alivemedia looks like an AJAX problem with your cart, which is not the default VirtueMart module. Maybe you should disable the BlueFlame xajax script to make debugging easier? Suggest you ask the supplier of the cart module. In addition you are loading two copies of jQuery, so you may want to address that issue, too.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>

@skul2  you also have a JavaScript issue and are using anon-standard VM cart module. You are loading so many js files that debugging will be difficult.

You also have a security alert in using https:
SEC7111: HTTPS security is compromised by http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f3e457550cc1084
infinity-mirror-5-detail?Itemid=0
SEC7111: HTTPS security is compromised by http://s7.addthis.com/js/250/addthis_widget.js
infinity-mirror-5-detail?Itemid=0
Title: Re: Shopping cart not updating AFTER checkout and payment
Post by: AliveMedia on February 16, 2013, 16:16:34 PM
Thanks @ jenkinhill.  I updated the VM AIO and that seemed to be the issue.  Now it will empty after a user has completed the transaction in PayPal.  I'll take a look at the additional jquery script as well.
Title: Re: Shopping cart not updating AFTER checkout and payment
Post by: skul2 on February 17, 2013, 19:05:21 PM
Thanks a million Jenkinhill, I will look into it.

Regard
Skul2
Title: Re: Shopping cart not updating AFTER checkout and payment
Post by: skul2 on February 21, 2013, 16:49:51 PM
Hi Jenkinhill,

I found my problem, it is when I activate my SSL Certificate that this happen.
So I went to the back end to deactivate using the product scripts under the
Activate css style & Javascript and it start to work. The only problem to that
is, it show the cart has soon has someone add a product to it.
Is there a better way to fix this?

Regards
Skul2