VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: themichaelminer on October 25, 2011, 20:47:29 PM

Title: Products Dont Add to Cart
Post by: themichaelminer on October 25, 2011, 20:47:29 PM
I know this has been asked by other people, because I have been search and reading different cases where people have had issues with the add to cart button not working correctly. So far none of the stuff I have read have helped me so I'm seeking some direct help from someone. Basically the when the add to cart button is pressed it take me to an empty cart and the product is never added to the cart. I'm going out of my mind with this now and don't know what to do to fix this.

Forgot to mention, the increase/decrease quantity buttons don't work either.

What I'm Using:
Joomla 1.7.2
VM 1.9.8j
Linux
PHP 5.2.17
Apache

I don't know what to do about it anymore. Hoping someone might be able to help me out.
Title: Re: Products Dont Add to Cart
Post by: Milbo on October 26, 2011, 15:46:33 PM
you missed the most important point, your used template.
Always all posts point to the problem of other jQuery already loaded, so disable the loading of jquery in vm config and hope that your template or extension using the jquery is compatible with vm
Title: Re: Products Dont Add to Cart
Post by: NawtyAtNight on December 20, 2011, 08:38:44 AM
Hello Milbo, I am having the same issue, Add to cart button sends me to an empty cart/checkout page. Also the increase/decrease button is not working.

Info:
Virtuemart 2.0.0 released Dec-19-2011
Joomla : 1.7.3
Template is using the T3Framework

After installing Virtuemart 2.0.0 I noticed that my mega menu was not working on the Home page, after disabling (Un-checking it in Configuration)Virtuemart jQuery It all started working again.

Now I cant add my test product to the cart because Im having OP's same issue, I cant add product to cart & increase/decrease quantity.

I also notice two more things, I have attached a screen shot:

1. My logo does not come out like I changed it to in the template.css file. Its taking the original parameters that were there before I edited the file.
2. And when using google chrome to look at the code I see two error?? messages??

Can some one help please.

[attachment cleanup by admin]
Title: Re: Products Dont Add to Cart
Post by: jenkinhill on December 20, 2011, 12:29:35 PM
NawtyAtNight use the script debugger in IE9 to look for JS conflicts. (hit F12)
Title: Re: Products Dont Add to Cart
Post by: NawtyAtNight on December 20, 2011, 17:38:55 PM
Ok a little update:

It seems that the logo is showing up ok now, I guess the temp CSS files that where created needed time? to update? because now this morning they are showing up ok.

Quote from: jenkinhill on December 20, 2011, 12:29:35 PM
NawtyAtNight use the script debugger in IE9 to look for JS conflicts. (hit F12)

Since I am not to savy in php, I will have some problems looking for JS Conflicts, i will read up on how to do it and look into it, if any one can help here is the website:
1. I still cannot increase/decrease quantity.
2. when you click on add to cart button you get redirected to shopping cart/check out page with no items in cart.
Info:
Virtuemart 2.0.0 released Dec-19-2011
Joomla : 1.7.3
Template is using the T3Framework

Megamenu was NOT working but got fixed when I disabled VM JQuery in configuration.

http://www.advertisingmediasolution.com/accu/index.php/online-parts-store/motors/manual-detail (http://www.advertisingmediasolution.com/accu/index.php/online-parts-store/motors/manual-detail)
Title: Re: Products Dont Add to Cart
Post by: jenkinhill on December 20, 2011, 18:24:15 PM
You have disabled jQuery so VirtueMart will not work. IE9 gives:
Line: 1414
Error: 'jQuery' is undefined

I thought JoomlArt megamenu used mootools?
Title: Re: Products Dont Add to Cart
Post by: NawtyAtNight on December 20, 2011, 18:39:15 PM
Quote from: jenkinhill on December 20, 2011, 18:24:15 PM
You have disabled jQuery so VirtueMart will not work. IE9 gives:
Line: 1414
Error: 'jQuery' is undefined

I thought JoomlArt megamenu used mootools?

edit - Update: I enabled Virtuemart jQuery. Megamenu stopped working & still cant add items to cart or increase/decrease quantity. All help is much appreciated. Thanks Jenkinhill  :)
Title: Re: Products Dont Add to Cart
Post by: NawtyAtNight on December 20, 2011, 18:50:30 PM
Error:'jQuery is undefined' seems to begone but i still receive the following errors ( see attachment)

[attachment cleanup by admin]
Title: Re: Products Dont Add to Cart
Post by: NawtyAtNight on December 20, 2011, 20:43:53 PM
(SOLVED)  ;D ;D ;D..... JQuery conflict from template. Switched to various templates that get installed with Joomla 1.7 and noticed everything working. Also Milbo & jenkinhill gave me a clue as to what it could be, java script issues. All i did was go into template managment in joomla , selected my template, looked around for any java script options, and disabled it, all is working like normal now. Thanks again Milbo & JenkinHill
Title: Re: Products Dont Add to Cart
Post by: Bigitybossman on May 16, 2012, 08:18:56 AM
Quote from: NawtyAtNight on December 20, 2011, 20:43:53 PM
(SOLVED)  ;D ;D ;D..... JQuery conflict from template. Switched to various templates that get installed with Joomla 1.7 and noticed everything working. Also Milbo & jenkinhill gave me a clue as to what it could be, java script issues. All i did was go into template managment in joomla , selected my template, looked around for any java script options, and disabled it, all is working like normal now. Thanks again Milbo & JenkinHill

Thanks a million NawtyAtNight, this worked for me. I have been trying to find this solution for hours.

I turned off the "optimize JS" option in the T3 template setting and it worked like a champion.

Thanks again