VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: fricikoma on January 29, 2014, 23:15:20 PM

Title: Add to cart not working after site move
Post by: fricikoma on January 29, 2014, 23:15:20 PM
I moved a Joomla website and now I can't add products to the cart. It was working before. What might be the problem? Please help me.
Here is the site: http://www.tattoo-supplies.ro/tattoo-webshop
Title: Re: Add to cart not working after site move
Post by: jenkinhill on January 29, 2014, 23:26:42 PM
http://forum.virtuemart.net/index.php?topic=79799.0

As soon as I saw the template I was aware that there would be a JavaScript conflict. Sure enough:
TypeError: jQuery(...).fancybox is not a function

You load two different jQuery versions:
<script src="/tattoo-webshop/components/com_virtuemart/assets/js/jquery.min.js" type="text/javascript"></script>  <<<< loaded by VM is version 1.6.4
<script type="text/javascript" src="/tattoo-webshop/templates/fricitetko0/js/jquery-1.3.1.min.js"></script>   <<<< loaded by the template is a really old version. 1.3.1

There should only be one, and the old version supercedes VM's version and breaks the required fancybox function.

See http://forum.virtuemart.net/index.php?topic=119638.0
Title: Re: Add to cart not working after site move
Post by: fricikoma on January 29, 2014, 23:40:04 PM
I checked the 'Using the product Scripts' in the Configuration - Templates and now it's working fine :)
Thank you for the tip