VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: skione on April 22, 2014, 04:21:52 AM

Title: Can't add items to cart
Post by: skione on April 22, 2014, 04:21:52 AM
Originally I was having a problem where I would get to checkout, select paypal and then go back to select payment. So I upgraded to the latest version of VM (2.6). I am running Joomla 2.5.19

Now I can get items to add to the cart. Plus I get a wierd JS error:
Uncaught TypeError: undefined is not a function
On this line:
$("#virtuemart_country_id").vm2front("list",{dest : "#virtuemart_state_id",ids : "33",prefiks : ""});

I am running PHP 5.3.10 and MySQL 5.6 on Ubuntu 12.04

The URL to the site is:

http://apshobbies.com

Any help would be greatly appreciated.
Title: Re: Can't add items to cart
Post by: jenkinhill on April 22, 2014, 10:42:11 AM
You have a JavaSript conflict, giving this error:
TypeError: jQuery(...).fancybox is not a function

Caused by your Joomla template loading jQuery 1.8.3 which prevents VM's fancybox from working.
<script src="/templates/horme2/js/jquery-1.8.3.min.js" type="text/javascript"></script>

Remove that from the template & VM should then work.  http://forum.virtuemart.net/index.php?topic=119638.0

Title: Re: Can't add items to cart
Post by: skione on April 23, 2014, 01:36:05 AM
Thank you so very much!
Title: Re: Can't add items to cart
Post by: skione on April 24, 2014, 03:46:24 AM
I've run into a problem. If I comment out jquery, the store starts working but the slideshow on the homepage requires it. I tried loading the same version of jquery in the home page and disabling it in the store but I seem to be stuck with either the store or the home page working. Am I missing something?
Title: Re: Can't add items to cart
Post by: byPV on April 24, 2014, 10:49:50 AM
Hi,

the problem will probably be in the order of loading JS scripts.

I don't see the slideshow on your page, but I suppose that the slideshow does not wait for the whole page to load and you are loading jQuery manually later than the JS script for the slideshow, right?

Regards,
Pavel