VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: wtkagb on January 30, 2013, 23:01:21 PM

Title: cart not updating
Post by: wtkagb on January 30, 2013, 23:01:21 PM
cart will not update unless you refresh the page or move to another page.

How do i get it to update as soon as an item is added?
Title: Re: cart not updating
Post by: jenkinhill on January 30, 2013, 23:08:32 PM
http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: cart not updating
Post by: wtkagb on January 30, 2013, 23:14:34 PM
using 2.0.18a on Joomla! 2.5.8
Title: Re: cart not updating
Post by: jenkinhill on January 31, 2013, 09:59:53 AM
And the url?
Title: Re: cart not updating
Post by: wtkagb on January 31, 2013, 15:05:26 PM
its only hosted locally until it is all set up
Title: Re: cart not updating
Post by: jenkinhill on January 31, 2013, 15:13:57 PM
OK so we have to guess. It is most probably a JavaScript conflict.

See http://www.ehow.com/how_6002923_diagnose-problems-javascript.html  and   https://getfirebug.com/errors
Title: Re: cart not updating
Post by: wtkagb on January 31, 2013, 17:02:13 PM
It says it cannot read 'settings' in line 66 of \components\com_virtuemart\assets\js

65 var txt = form.find(".pname").val()+' '+vmCartText;
66 $.facebox.settings.closeImage = closeImage;

Unfortunately this is an area that I am not very familial with
Title: Re: cart not updating
Post by: wtkagb on February 01, 2013, 17:00:07 PM
got it uploaded now to here:

http://www.wtkaengland.com/Joomla15/index.php/en/shopping
Title: Re: cart not updating
Post by: jenkinhill on February 01, 2013, 23:28:18 PM
There is a Javascript conflict with your template. You are loading the VirtueMart jQuery OK but then you have this:

<script type="text/javascript" src="/Joomla15/templates/sportissimo/js/jquery.js"></script>         
<script type="text/javascript" src="/Joomla15/templates/sportissimo/js/superfish.js"></script>       

That is another jQuery library and also for superfish there have been a couple of reports of this confflicting with VM.

Suggest you try the removing the jQuery load from your template and see if that works.
Title: Re: cart not updating
Post by: wtkagb on February 01, 2013, 23:46:25 PM
many thanks for the info, but unfortunately I do not understand this as I do not have much experience of JS, where/how do i remove  jQuery load from template
Title: Re: cart not updating
Post by: jenkinhill on February 02, 2013, 13:18:38 PM
Locate the code loading the script and remove it or comment it out. In simple templates the code will be in the template's index.php  - or ask the template supplier.

Instead of editing you could possibly use jQuery Easy (http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327) to control script loading.