News:

Looking for documentation? Take a look on our wiki

Main Menu

Add to cart not working after site move

Started by fricikoma, January 29, 2014, 23:15:20 PM

Previous topic - Next topic

fricikoma

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

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

fricikoma

I checked the 'Using the product Scripts' in the Configuration - Templates and now it's working fine :)
Thank you for the tip