VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Eternity on October 02, 2012, 10:07:52 AM

Title: Add to Cart Button Does nothing - Please help!!!
Post by: Eternity on October 02, 2012, 10:07:52 AM
Hi

I have a huge problem, when I click on the add to cart button nothing happens!!!!  Please could you help me??  I have configured the currency and I have added paypal as a payment method, but still nothing happens!!  I am using VM 2.0.10 and Joomla 1.5.26  Please help.  Thanks
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: jenkinhill on October 02, 2012, 10:39:29 AM
url?
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: Eternity on October 02, 2012, 12:12:01 PM
Hi Jenkill

http://www.transatlanticcreations.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=31&virtuemart_category_id=91

Thats the one product direct, there are a couple of others loaded, none of them are working.

Thanks
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: jenkinhill on October 02, 2012, 13:47:53 PM
You have a JavaScript conflict with the jquery loaded by your template. You could try disabling either template or VM jquery to see if that helps, and maybe try this plugin: http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/7230

Try using a different template such as beez to see if you still have a conflict. We have seen a lot of people having this problem with Artisteer templates, which I think may not occur with the latest Artisteer version. But judging from the complaints I have heard, that version is aimed at beginners in site design and not for professionals or accomplished amateurs, so you may not want to pay out the $130 it now costs.
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: Eternity on October 02, 2012, 14:37:49 PM
Where would I disable the VMjquery as I only have the one template loaded, or is there a way to source the javascript in the template and repair it so that it works?  I have downloaded, installed and enabled the plugin and it did not change anything for me.
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: jenkinhill on October 02, 2012, 16:43:37 PM
For VM under Activate Css Styles & Javascripts in Configuration/Templates.

Disable the template jQ by editing the template's index.php
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: Eternity on October 02, 2012, 16:46:54 PM
Ok, I found it in VM and disabled it (took the tick out) and it didnt work.  I have the index.php but how would I disable it in here and what am I looking for? Would you like the index.php file?  I also see there is a jquery.js file in the template folder, could this be an issue as well?
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: bytelord on October 02, 2012, 17:30:43 PM
Hi,

Your custom template is loading jquery from your joomla_folder/templates/tac3/jquery.js and the version of the jquery is 1.4.2 ... a little bit old. So you have to "unload" it from your template. The header is loading it <script src="/templates/tac3/jquery.js" type="text/javascript"></script>  try to find it inside your header (something like head.php) in your custom joomla template and delete or comment that line. After "tick" again the vm jquery library to get loaded from the backend.

I think your joomla template is quite old ... too old...

Regards
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: Eternity on October 02, 2012, 17:36:43 PM
Thanks bytelord, I will look for it.
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: bytelord on October 02, 2012, 17:39:20 PM
ok,

And use firebug to examine your site code and styling .. also for checking js conflicts ...
http://forum.virtuemart.net/index.php?topic=102850.0

js conflicts general: http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
http://dev.virtuemart.net/projects/virtuemart/wiki/JavascriptCSS_Template_Overrides_and_Avoiding_Conflicts_between_Libraries


Regards
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: Eternity on October 02, 2012, 17:44:09 PM
Thanks bytelord, that worked!!! Now I have a new problem ... should I start a new post or can I tell you about it here?
Title: Re: Add to Cart Button Does nothing - Please help!!!
Post by: bytelord on October 02, 2012, 17:47:33 PM
Hi,

glad it helps you out. Yes start a new thread ...

Regards