News:

Support the VirtueMart project and become a member

Main Menu

Deleting product in cart

Started by mckristensen, October 16, 2013, 08:40:48 AM

Previous topic - Next topic

mckristensen

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

jenkinhill

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

mckristensen

Just been looking some more into this and it looks like that I have a generel cache problem with the cart


jenkinhill

The cart should not be cached...........
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

mckristensen

I've updated to version 2.0.24

No the cart shouldn't be cached... and I have disabled caching in Joomla

mckristensen

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

jenkinhill

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?
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

mckristensen


jenkinhill

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.
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

mckristensen

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

jenkinhill

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

mckristensen

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