VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: QubeSys Technologies on May 14, 2012, 11:01:09 AM

Title: Products not adding to cart ?
Post by: QubeSys Technologies on May 14, 2012, 11:01:09 AM
We have a weird problem.
The site was working perfect until we upgraded to 2.0.6 .
Now, when we click on ADD TO CART, it doesnt add to cart at all.

What can be the possible reason and way to fix it ?
Title: Re: Products not adding to cart ?
Post by: jenkinhill on May 14, 2012, 15:42:37 PM
Check VM configuration - extra options were added in template & checkout.
Title: Re: Products not adding to cart ?
Post by: QubeSys Technologies on May 14, 2012, 15:46:52 PM
What to check ?
Title: Re: Products not adding to cart ?
Post by: Lorrein on May 14, 2012, 16:03:40 PM
Did you enable "Using the Virtuemart jQuery" in backend/vm/configuration/tab templates?
Title: Re: Products not adding to cart ?
Post by: QubeSys Technologies on May 14, 2012, 16:10:46 PM
Problem is not the add to cart button.  The click happens fine.

I have ajax switched off, so the page has to refresh and show me the cart.

But the cart has no products.

Looks like a cookie or session problem.
No idea, how to debug.
Title: Re: Products not adding to cart ?
Post by: QubeSys Technologies on May 15, 2012, 02:28:10 AM
Check this,
http://simplystunningcollections.com.au/index.php?option=com_virtuemart&view=category&virtuemart_category_id=13

Try to add anything to cart and you will see.

Can anyone help ?
I have checked everything and it just doesnt work. Damn.
Title: Re: Products not adding to cart ?
Post by: QubeSys Technologies on May 15, 2012, 06:34:25 AM
http://simplystunningcollections.com.au/index.php?option=com_virtuemart&view=category&virtuemart_category_id=10&Itemid=469

Did anyone test ?

What can the possible reason ?

Isnt there a debug script for VM ?
This frustrating.
Title: Re: Products not adding to cart ?
Post by: Lorrein on May 15, 2012, 08:42:21 AM
I succesfully added Double Wraparound Coil Rhinestone and Pearl Bracelet. And in the card i can change it to 2 items. Seems to be working.

Clear cash?
Title: Re: Products not adding to cart ?
Post by: QubeSys Technologies on May 15, 2012, 09:27:02 AM
It worked now.

It was the javascript. Had to fix it.
Title: Re: Products not adding to cart ?
Post by: Lorrein on May 15, 2012, 09:39:14 AM
what is the fix? Dit you have a javascript conflict? How did you find out and what was your solution?
Title: Re: Products not adding to cart ?
Post by: QubeSys Technologies on May 15, 2012, 09:43:28 AM
Long process.

Checked it from console , found the js problem , tried replacing it with a new VM package, cleared cache, fixed.
Title: Re: Products not adding to cart ?
Post by: Lorrein on May 15, 2012, 10:10:17 AM
which JS items were in conflict?
Title: Re: Products not adding to cart ?
Post by: QubeSys Technologies on May 15, 2012, 10:10:57 AM
jquery