VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Sicos on April 13, 2014, 15:51:45 PM

Title: Fancy box not showing when adding a product to the cart
Post by: Sicos on April 13, 2014, 15:51:45 PM
Hi,

I upgraded to VirtueMart 2.6.0 today. Everything seems to work fine except for one thing. Normally when I add a product to the cart I would get a fancybox that said "the product xxxx is added to the cart" and I would have the option to show the cart or keep on shopping. When I now add a product to the cart I directly go to the cart checkout page. The selected product is there... but I want to have the fancybox back. In the Configuration --> Templates the option "Use fancybox"  is checked. Am I missing something somewhere?

The site specs:
http://www.wanwiswebwinkel.nl
Upgraded from 2.0.26d to 2.6.0
Linux speedy.nedlinux.com 2.6.18-371.el5xen #1 SMP Tue Oct 1 10:03:20 EDT 2013 i686
Database versie    5.5.32
Database collatie utf8_general_ci
PHP 5.3.17
Joomla! 2.5.19 Stable [ Ember ] 6-March-2014 14:30 GMT
Title: Re: Fancy box not showing when adding a product to the cart
Post by: jenkinhill on April 13, 2014, 16:01:24 PM

Sorry, the website www.wanwiswebwinkel.nl cannot be found.
Title: Re: Fancy box not showing when adding a product to the cart
Post by: Sicos on April 13, 2014, 18:04:25 PM
Woeps... sorry about that. I did make a typo.

http://www.wanwisawebwinkel.nl

Just as an add on. I use one page checkout from www.rupostel.com. Don't know if that has anything to do with it but just to have the complete picture.

I use the latest version --> Apr 09 2014 com_onepage2.0.236.zip
Title: Re: Fancy box not showing when adding a product to the cart
Post by: jenkinhill on April 13, 2014, 18:41:16 PM
You have a JavaScript problem preventing fancybox from running. This is due to loading more than one jQuery version - you load three:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/templates/wanwisawebwinkel/jquery.js"></script>

Fancybox should work OK on versions up to to 1.7.1 so you will have to look at the coding. I'd start by preventing the template jQuery from loading - I have seen to many js problems with Artisteer templates before.  Info on debugging is in http://forum.virtuemart.net/index.php?topic=119638.0
Title: Re: Fancy box not showing when adding a product to the cart
Post by: Sicos on April 13, 2014, 20:00:41 PM
I think i removed the duplicate jquery libraries. But still no lock.

Any more ideas?

Greetings,
Kees
Title: Re: Fancy box not showing when adding a product to the cart
Post by: rage76 on April 14, 2014, 17:30:14 PM
try installing plugin jqueryintegrator or something similar with noConflict.

that worked for me...