News:

Support the VirtueMart project and become a member

Main Menu

1.9.8G ADD TO CART is not working

Started by Geee, September 18, 2011, 19:30:07 PM

Previous topic - Next topic

Geee

Hi, I need help to solve this  :(

"ADD TO CART" button is not working. Doesn't add product to the cart. It links to empty cart. Not able to add product quantity.
New installation. No migration done. I get no errors or at least I can't find them.

PHP 5.2.17
Apache
Joomla! 1.7.0 Stable
Mozilla/5.0 Firefox/6.0.1 (the same problem is on all browsers)
VirtueMart 2.0.0-RC-2G / Virtuemart 1.9.8.RC2G_extract_first
Joomla theme YOOtheme Nano

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Geee

#2
I don't think so, because it's the same problem on beez_20 and beez5 themes  :(
"+" and "-" buttons to add more quantity to the cart is not working as well.

Milbo

It is quite sure some js problem. Check which jquery do you load.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Geee

I am sorry but I am too new into this and don't know where and how to check it?  :-[

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Geee

I loaded my VirtueMart page and used Firebug. Under section "Sript" I found three jQuery results:

Quote</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/modal.js" type="text/javascript"></script>
<script src="/media/widgetkit/js/jquery.js" type="text/javascript"></script>
<script src="/cache/widgetkit/widgetkit-050d3394.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/templates/yoo_nano/warp/js/warp.js" type="text/javascript"></script>
<script src="/templates/yoo_nano/warp/js/accordionmenu.js" type="text/javascript"></script>
<script src="/templates/yoo_nano/warp/js/dropdownmenu.js" type="text/javascript"></script>
<script src="/templates/yoo_nano/js/template.js" type="text/javascript"></script>
<script src="/templates/yoo_nano/warp/js/search.js" type="text/javascript"></script>
<script type="text/javascript">

Any ideas?  :(

Geee

By the way, database is MySQL, not MySQLi

Milbo

Quote from: Geee on September 19, 2011, 22:57:13 PM
By the way, database is MySQL, not MySQLi
Good to know :-)

I think it is your /media/widgetkit/js/jquery.js. Delete this file and it should work, when the other component has also the option like vm2 to disable the js, you should create an own custom one. This also speeds up your shop
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Geee

Thanks, it is working then I turned off my widgekit  :)
But I need it on my page  :( So maybe someone can help me to build custom script to make all js on my page working together. I think it is only a few minutes for someone who knows all these things  ::)
Message me if you are interested $$$

rhatton

I have the same exact problem!
I would love a solution to this...


arueder

Has anyone got this fixed yet? Kind of pointless if you have a shopping cart that won't work.

Geee

Ok, this is js conflict! I found some information on this but still this is too difficult for me  :(

Widgetkit ON

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js" type="text/javascript"></script>
...
[b]<script src="/media/widgetkit/js/jquery.js" type="text/javascript"></script>
<script src="/cache/widgetkit/widgetkit-050d3394.js" type="text/javascript"></script>[/b]


Widgetkit OFF

[b]<script src="/templates/tmplate_sample/warp/libraries/jquery/jquery.js" type="text/javascript"></script>[/b]
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js" type="text/javascript"></script>


Some links to all this  :-\
http://api.jquery.com/jQuery.noConflict/
http://docs.jquery.com/Using_jQuery_with_Other_Libraries

And I got one hint for speeding up the page but not sure about this:
Quote

<script type="text/javascript" src="http://www.google.com/jsapi?key=Google_API_KEY"></script>
<script type="text/javascript" charset="utf-8">
google.load("jquery", "1.6.1");
google.load("jqueryui", "1.8.13");
</script>


Google API KEY from here:
http://code.google.com/apis/loader/signup.html

Milbo

There exist page you can upload your jquery scripts and it combines it for you.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

mlvrsol

#14
if you enable the "System - Language Filter"-Plugin in Jommla 1.7, then the "Add to Cart"-Button does not work in Internetexplorer. (without Language Filter it works fine)
Any ideas how to fix this? (is there some js-file which i can modify this easily on my own (i'm not familiar with jquery, etc)?)
best greetings, martin