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
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
I checked the 'Using the product Scripts' in the Configuration - Templates and now it's working fine :)
Thank you for the tip