VirtueMart 2 > Virtuemart 2 Development and bug reports

Add to cart issues - what's the actual solution?

(1/37) > >>

stuclark:
EXPLANATION IN POST 2   BANQUETTABLES.PRO


There's lots of posts on these forums about issues getting products to add to the cart properly in VM2. I've been suffering from this issue myself and haven't been able to find a full fix; so I thought it might be helpful to try to link all the discussions together so everyone can try to understand what does and doesn't work.

In my case, I'm using the JS_Elated template, which does indeed load jquery within the template. The solution I have so far (which works *most of the time* with Firefox and Chrome, but NOT in IE) was to delete the jquery line from the main JS_Elated template file so it's only loaded when Virtuemart wants it. I then turned ON all the json options in Virtuemart configuration, as turning off ANY of them caused add to cart to break completely.

However, as I've just said, this has NOT fixed the problem in IE for me so is only a partial fix.

Other threads discussing the same issue are:
http://forum.virtuemart.net/index.php?topic=95765.0
http://forum.virtuemart.net/index.php?topic=95977.0
http://forum.virtuemart.net/index.php?topic=95879.0
http://forum.virtuemart.net/index.php?topic=92815.0
http://forum.virtuemart.net/index.php?topic=95699.0
http://forum.virtuemart.net/index.php?topic=95394.0
http://forum.virtuemart.net/index.php?topic=92421.0

...and others I'm sure.

Please add useful tips on what you may have done to fix these issues in this thread. (admins, can this be a sticky so *everyone* can find it?)

PRO:
This is NOT a virtuemart problem 1st of all


There will NOT be a single answer that applies to everyone.
THIS IS A JAVA CONFLICT 99% OF THE TIME
Vmart jquery does NOT conflict with standard joomla mootools.

also, make sure "system cache" plugin is disabled


JQUERY HAS to be loaded for add to cart to work
Virtuemart product scripts have to be loaded.

Templates Have javascript
Modules have Javascript

If a template uses Jquery, let it use jquery, and turn off vmart jquery.
UNLESS the template jquery version is LESS THAN
jQuery JavaScript Library v1.6.1
in that case use vmart jquery and turn of your template jquery.

NOW: If you are using standard joomla template and get the conflict. Are you using modules? Menus? That use javascript?
Disable all modules, and see if the cart works. Then enable them one by one


ALSO; do not edit the add to cart form classes etc. unless you know what you are doing

ALSO Re; css and java script compressors like jch optimize, and all those.
I have not seen a single example of these working with 2.0 yet without messing up cart functions. I have tried on mine, with many configurations etc. Still conflicts with cart functions.

 AND see here
http://forum.virtuemart.net/index.php?topic=95879.msg315642#msg315642

stuclark:
Ok, so if this is NOT a VM issue, how come so many people are having issues getting this feature of VM to work???

If it's a JavaScript / template / Joomla / something else issue, then why is it people only get the error with VM? and why is it then SO varied as to whether people are able to fix it???

And how do we find out what version of jQuery might be in use by a particular template / module?

stuclark:
Another example of the same issue, with DEFAULT JOOMLA TEMPLATES: http://forum.virtuemart.net/index.php?topic=95724.0

PRO:
more coming in 2nd post, just hold on

Navigation

[0] Message Index

[#] Next page

Go to full version