News:

Looking for documentation? Take a look on our wiki

Main Menu

Add to cart button doesn't work - looks like bug - help please

Started by clustermass, March 22, 2012, 14:16:25 PM

Previous topic - Next topic

clustermass

Joomla 2.5.1 Stable Full Package - clean install on local host
Virtuemart 2.0.2 - clean install on local host
Installing joomla and virtuemart demo data.
Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8k
PHP/5.2.12
MySQL client version: 5.0.51a

Internet Explorer - 8.0.6001.18702 - Doesn't work button "Add to cart"
Mozilla Firefox 11 - Doesn't work button "Add to cart"
Opera 11.61 - Doesn't work button "Add to cart"
Google Chrome 17.0.963.79 - BUTTON FINALY WORKS, but notice about adding a product appears 5 seconds later after pressing "add to cart".

Tried restarting web-server, restarting XP machine, reinstalling.
Running Virtuemart 2.0.0 with demo data on the same web-server - buttons are working perfectly.

Any suggestions? Please HELP.

jenkinhill

First update your PHP version to 5.3+

Make sure that in VM configuration/Templates/Activate Css Styles & Javascripts you have "Using the product Scripts" selected. http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery

VM2.0.2 on Joomla 2.5.3 works OK for most - there are already live stores using this. Where it does not work is where there are JavaScript conflicts (check the console in Firefox or use the debugger in IE8/9)  or now apparent issues with using out of date PHP versions.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

clustermass

OK, I updated joomla up to 2.5.3.
VM configuration/Templates/Activate Css Styles & Javascripts I have "Using the product Scripts" selected.

Now, products are added to the cart, but there is no pop-up window informing that product was added.
Customer has to manually refresh the page to see updated cart.
Looks like I have the same issue with this guy:

http://forum.virtuemart.net/index.php?topic=99508.0

Firefox console doesn't show any errors while pressing the button.
However, the are two errors while loading any page:


Timestamp: 3/22/2012 4:12:52 PM
Warning: Unknown property 'spacing'.  Declaration dropped.
Source File: http://tpi.local/components/com_virtuemart/assets/css/vmsite-ltr.css
Line: 208


Timestamp: 3/22/2012 4:12:52 PM
Warning: Use of getAttributeNode() is deprecated. Use getAttribute() instead.
Source File: http://tpi.local/index.php/component/virtuemart/powertools/indoortools/drill-detail?Itemid=0
Line: 0

I will update php later.

In addition - installed Virtuemart 2.0.3E - evefything works.
Hold the project until 2.0.3 Stable releases.  :(