VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: mckristensen on October 16, 2013, 08:40:48 AM

Title: Deleting product in cart
Post by: mckristensen on October 16, 2013, 08:40:48 AM
I have a problem with the cart. When I delete a product in the cart, then the message about product deletion and the update of the cart is first shown when I browse away from the cart.

Joomla version: 2.5.14
Virtuemart version: 2.0.20b
Title: Re: Deleting product in cart
Post by: jenkinhill on October 16, 2013, 10:13:11 AM
URL?

Also see http://virtuemart.net/news/latest-news/446-important-security-release-vm-team-at-joomladay-germany for updating to a secure version.
Title: Re: Deleting product in cart
Post by: mckristensen on October 16, 2013, 10:14:19 AM
Just been looking some more into this and it looks like that I have a generel cache problem with the cart
Title: Re: Deleting product in cart
Post by: mckristensen on October 16, 2013, 10:16:42 AM
Quote from: jenkinhill on October 16, 2013, 10:13:11 AM
URL?

www.sitbag.dk (webshop only in danish)

Quote
Also see http://virtuemart.net/news/latest-news/446-important-security-release-vm-team-at-joomladay-germany for updating to a secure version.

I'll update right away
Title: Re: Deleting product in cart
Post by: jenkinhill on October 16, 2013, 13:14:14 PM
The cart should not be cached...........
Title: Re: Deleting product in cart
Post by: mckristensen on October 16, 2013, 13:50:28 PM
I've updated to version 2.0.24

No the cart shouldn't be cached... and I have disabled caching in Joomla
Title: Re: Deleting product in cart
Post by: mckristensen on October 16, 2013, 15:24:54 PM
I've been looking at this topic https://forum.virtuemart.net/index.php?topic=95979.0 but still haven't been able to fix it.

I'm using Joomlashack's Wright template, and I've disabled loade of jQuery in the template.
VM template settings is:
Use Fancybox   [No]
Using the VirtueMart CSS     [Yes]
Using the VirtueMart jQuery   [Yes]
Using the product Scripts     [Yes]
Using the Script ajax Countries / Regions   [Yes]
Use jQuery chosen for dropdowns in FE   [No]
Use external google jQuery library   [No]

Only have one module installed and that's the Linelab VM Cart
Title: Re: Deleting product in cart
Post by: jenkinhill on October 16, 2013, 23:48:58 PM
You shoold use Fancybox unless loading bells & whistles in the Jooml;a template which interfere with it. And use Use jQuery chosen for dropdowns in FE if your country has states.

Asking again. URL?
Title: Re: Deleting product in cart
Post by: mckristensen on October 17, 2013, 08:27:37 AM
Fancybox is now active.
Don't have any states.

http://www.sitbag.dk/2013/da/webshop
Title: Re: Deleting product in cart
Post by: jenkinhill on October 17, 2013, 10:52:18 AM
I see this JavaScript error on your cart page:
SCRIPT438: Object doesn't support property or method 'on'
bootstrap.min.js, line 6 character 18749
SCRIPT438: Object doesn't support property or method 'on'
bootstrap.min.js, line 6 character 1068

And on the home page where there is no VM js files loading, only your minicart module:
SCRIPT5007: Object expected
bootstrap.min.js, line 6 character 14
SCRIPT5009: 'jQuery' is undefined
stickyfooter.js, line 1 character 1

So looks like the problem is with your template.
Title: Re: Deleting product in cart
Post by: mckristensen on October 17, 2013, 11:15:07 AM
That I can fix by loading jQuery from the template instead of Virtuemart, but then I get:
Uncaught ReferenceError: jQuery is not defined vmsite.js:112
Uncaught ReferenceError: jQuery is not defined jquery.fancybox-1.3.4.pack.js:46
Uncaught ReferenceError: jQuery is not defined vmprices.js:150
Title: Re: Deleting product in cart
Post by: jenkinhill on October 17, 2013, 17:38:37 PM
No you need to load the VM JavaScript. Have a look at http://forum.virtuemart.net/index.php?topic=119638 - and the second paragraph in http://forum.virtuemart.net/index.php?topic=119621.msg407164#msg407164
Title: Re: Deleting product in cart
Post by: mckristensen on October 18, 2013, 14:18:52 PM
OK, Thanks. With some help from jQuery easy it seems that I have solved all the JS conflicts.
But the issue with updating the cart when deleting and/or adding products is still there