VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: ntggl19 on August 23, 2012, 18:00:15 PM

Title: problem with add to cart button
Post by: ntggl19 on August 23, 2012, 18:00:15 PM
i have a problem with add to cart button, when i hit it i doesn't do anything only if i hit refresh then i see it in the Shopping cart.
my site is www.mc-trading.ch
what should i do?
thank you
Title: Re: problem with add to cart button
Post by: jenkinhill on August 23, 2012, 18:48:18 PM
You have a lot of JavaScript on the site, which is very slow to me, not helped by having that big slideshow on every page as you have to wait for it to load.
But you don't seem to be loading the VM javascript. The path is wrong, eg <script src="/components/com_virtuemart/assets//js/jquery.min.js" type="text/javascript"></script>

Check the path is correct (no double end-slash) for General Assets URL in VM configuration/templates

Not sure if that is it, but somewhere to start.
Title: Re: problem with add to cart button
Post by: ntggl19 on August 23, 2012, 18:58:30 PM
the file "jquery.min.js" is on "public_html/components/com_virtuemart/assets/js" i think it is corect
Title: Re: problem with add to cart button
Post by: jenkinhill on August 23, 2012, 23:45:02 PM
Since then I have looked again with IE9's JavaScript debugger and there is an conflict issue which is difficult to identify. Maybe you should try without using the slideshow on the product pages.
Title: Re: problem with add to cart button
Post by: ntggl19 on August 24, 2012, 00:20:49 AM
thank you very much for the response, i disable it and it work, then i enable it and still work i don't know what was the ploblem
thank you again very much :)
Title: Re: problem with add to cart button
Post by: jenkinhill on August 24, 2012, 16:48:13 PM
Maybe the order in which the scripts were loaded into the template header.