VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: hauhelewai on August 29, 2013, 15:31:22 PM

Title: Fancy Box Causes the Shopping Cart not to work
Post by: hauhelewai on August 29, 2013, 15:31:22 PM
Hello,
On my website www.hauhelewai.com I have Virtumart 2.0.22a installed at http://hauhelewai.com/index.php/board-shop.

My problem is that the shopping cart doesn't work unless I have FancyBox disabled.  How do I fix that?  Also, what all does FancyBox do?  Sorry for the basic question, I have very little working knowledge of Virtumart as I am running my first install and I've only had it for about a week now.

Any help you could provide is greatly appreciated!!!!  Thanks in advance for your time and expertise!!!!
Title: Re: Fancy Box Causes the Shopping Cart not to work
Post by: jenkinhill on August 29, 2013, 17:14:49 PM
Not only is fancybox not working, but neither is the quantity adjust buttons and the product is not added to the cart.

You must turn on VirtueMart's jQuery loading - at the moment it is turned off. That should restore some cart function as long as "Using the product Scripts " is also turned on in VM configuration/templates.  If fancybox is disabled in configuration the facebox will be used instead. Both of these provide lightbox function for the product images and also shows a popup when a product is added to cart, or ask a question is used. Both are similar in function but fancybox is a better script.

When you page loads it also installs another version of jQuery:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">

Either turn off this loading or try using jQueryEasy - see http://forum.virtuemart.net/index.php?topic=111843.0

I suspect some Yootheme code is conflicting with VM function, but it is not possible to run a debugger unless VM jQuery is first loaded.
Title: Re: Fancy Box Causes the Shopping Cart not to work
Post by: hauhelewai on August 30, 2013, 03:10:25 AM
Thank you so much for your quick reply.  This one is totally over my head.  Your help is greatly appreciated. 

I went back in and turned the fancybox and vm jquery back on.  It seems to be a little more broken now though.  I also installed the jquery easy plugin, but I don't really know what it's doing to know how to configure it.

Thanks again for all the help!