VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: JdKock on November 19, 2011, 19:01:28 PM

Title: Add to cart doesn't work
Post by: JdKock on November 19, 2011, 19:01:28 PM
I use the latest version of VirtueMart ( _M ) but when i wanna add a product to the cart it doesn't work.
The product is not on the cart and no error message. I found that it has something to do with the languageswitcher, but when i turn this plugin off it still doesn't work.
Also when i turned off the use of VirtueMart JQuery it not work.

Any solution for my problem ?
Title: Re: Add to cart doesn't work
Post by: JdKock on November 20, 2011, 08:16:02 AM
Nobody ?

I now saw the message that there was some problems with the payment en languageswitch plugin, but the add to cart is stil core functionality for a webshop i think. So how can i add products to my cart without the languageswitch ?
Title: Re: Add to cart doesn't work
Post by: useris on November 20, 2011, 08:43:24 AM
Post the link to your website
Title: Re: Add to cart doesn't work
Post by: vlaspld on November 20, 2011, 12:39:35 PM
I have the same issue, i work as standard with 1 language (dutch) and when i press the add to card button I dont see the product in my shopping card also no price.

This is before and after i logged in.

How can i resolve this?

link to my development page is : http://vlaspo-dev.dyndns-server.com/shop/initiaties/index.php
Title: Re: Add to cart doesn't work
Post by: brandywine on November 21, 2011, 14:49:14 PM
Hello,

I have the same issue.  When I click on "Add to Cart" nothing is added.  Using:

VM 1.9.8M
J1.7
XAMPP 1.7.3
Joomlart JA Methys Template

Any help is greatly appreciated!  Thank you.
Title: Re: Add to cart doesn't work
Post by: PRO on November 21, 2011, 20:59:09 PM
brandywine, do you get a java error?

what happens when you change templates?
Title: Re: Add to cart doesn't work
Post by: brandywine on November 21, 2011, 21:13:03 PM
Hello BanquetTables,

No Java error and I've tried Joomlart templates and the standard Joomla templates with the same result.

Thanks!
Title: Re: Add to cart doesn't work
Post by: PRO on November 21, 2011, 22:11:18 PM
SEF enabled?
Title: Re: Add to cart doesn't work
Post by: brandywine on November 21, 2011, 22:20:07 PM
SEF is enabled but URL rewriting is not.
Title: Re: Add to cart doesn't work
Post by: JdKock on November 22, 2011, 12:32:12 PM
Problem solved by turning off the "use google jquery library".
Title: Re: Add to cart doesn't work
Post by: brandywine on November 22, 2011, 14:51:13 PM
Already tried that...unfortunately it didn't resolve the issue.  I welcome any other thoughts though.
Title: Re: Add to cart doesn't work
Post by: brandywine on November 23, 2011, 03:41:58 AM
Hello all,

I did a fresh install on the server (rather than localhost) and still the same problem.  I also noticed that the increase/decrease quantity buttons on the product page are not active either.  Any thoughts?  Thank you!
Title: SOLVED - Add to cart doesn't work
Post by: brandywine on November 23, 2011, 03:47:13 AM
Found the problem!  The Joomlart template I am using (JA DROiD) has the option of joining and minifying the JavaScript files.  When I deselected this option the cart worked.
Title: Re: Add to cart doesn't work
Post by: arnask on December 20, 2011, 16:42:37 PM
the same for me with final virtuemart 2 non of methods mensioned above work, help!

a
Title: Re: Add to cart doesn't work
Post by: jenkinhill on December 20, 2011, 17:29:09 PM
url?
Title: Re: Add to cart doesn't work
Post by: arnask on December 20, 2011, 17:42:01 PM
PM
Title: Re: Add to cart doesn't work
Post by: jenkinhill on December 20, 2011, 23:35:13 PM
You are not loading jQuery. Turn it on in VM configuration/templates/ Using the Virtuemart jQuery then check for JS conflicts.

Similar to http://forum.virtuemart.net/index.php?topic=92421.msg312504#msg312504
Title: Re: Add to cart doesn't work
Post by: arnask on December 21, 2011, 08:16:42 AM
thanks jenkinhill,

i tried yesterday this, but nothing worked. Today it worked from the first time. Don't know why.
What do you mean by "then check for JS conflicts". Can you explain me what to do? please
Title: Re: Add to cart doesn't work
Post by: Jerome on March 22, 2012, 06:27:22 AM
I am using Joomlart T3 Frame work for Joomla 2.5.3 and VM 2.0.2 and notice issues when Minify, Join and Compress (M,J,C) is turned on. I am using various Java script modules and notice that when (M,J,C) is enabled it causes issues with Virtuemart only. When ever I use the modules without being in a VM category everything works fine. (meaning selecting a joomla menu or article page) But when i select a VM category with the (M,J,C) turn on thats when the JS conflicts occur. Only when I select a VM category the JS conflicts occur. In the Joomlart T3 there is an option to exclude JS files from being (M,J,C). I found that the file of facebox.js is causing the conflict from using the (M,J,C) feature. Note that with Joomla, Joomlart T3 Frame work, and VM only installed the (M,J,C) feature doesn't work because VM Javascripts conflict with each other. Not sure why but I do know that when ever I exclude the facebox.js from being (M,J,C) everything else works. I tested on a remote and local server. On the local server I had to exclude the facebox.js in Joomlart's T3 Framework and disabled the "Use external google jquery library" option inside the configuration of VM. On the remote server I simply excluded he facebox.js in Joomlart's T3 Framework. Not sure if this is a real bug but throwing it out there for people that have issues with JS in VM. Does anyone have a better solution to use (M,J,C) with VM 2.0.2 javascripts?
Title: Re: Add to cart doesn't work
Post by: Bigitybossman on May 16, 2012, 08:21:09 AM
Hi,

I had the problem of products not adding to cart. I went into my T3 template settings and turned off the  "optimize JS" option and it worked a treat.

cheers
Title: Re: Add to cart doesn't work
Post by: Shadal on September 18, 2012, 00:37:02 AM
I am experiencing this problem on a fresh J!2.5.7 & VM2.10 installation. I am also using a T3 Template. I have disabled the T3 optimizations for the template.

Here's where it's screwy..
I can have the price adjust as cart attributes are changed when I enable 'Configuration -> Templates -> Using the VirtueMart jQuery'
Or...
I can have the add to cart button (but not the price adjustments) work if I disable 'Using the VirtueMart jQuery'

This is a major problem, someone please assist..  :-\

Site: http://goo.gl/yc4fv

Thanks!

Update:
Oh geez...
I unchecked 'Configuration -> Checkout -> Display modal popup upon 'Add to cart'' and now both the price adjustments and add to cart button work...
Title: Re: Add to cart doesn't work
Post by: djex on October 29, 2013, 16:19:13 PM
Hi All ,
First of all check if it works with and without the www. subdomain.
If you set the domain with www /administrator/components/com_virtuemart/virtuemart.cfg.php you should call the website with the www. on front too, to see the "add to cart" button working .
otherwise it wont work.
Cheers!