News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Add to cart button doesn't work

Started by FauSt0, November 03, 2012, 21:51:36 PM

Previous topic - Next topic

FauSt0

Hi all,

first of all, thank you in advance for the help.
I've searched the forum for this same issue, but unfortunatly didn't found anything about it.

Well here's the deal.

I've installed a joomla 2.5.7 website with VM 2.0.12f installed.
I've set up a few products, but when clicking on the "add to cart" button, nothing happens.

Do you know what I've done wrong?

Here's the url:
http://www.joomla.huureenkerstboom.nu/index.php/webwinkel

bytelord

#1
Hello,

I don't think that you search the forum at all ... last 3 days i have reply on the same issue a lot of times.

This is javascript conflict ... because you are loading jquery twice.
Please read the following threads with someone having the same exactly issue.

http://forum.virtuemart.net/index.php?topic=109436.msg366489#msg366489
http://forum.virtuemart.net/index.php?topic=109500.msg366722#msg366722

At your case here is the conflict (loading jquery twice) as i said ...

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/jquery.noConflict.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmsite.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/facebox.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmprices.js">
<script type="text/javascript" src="/media/system/js/mootools-core.js">
<script type="text/javascript" src="/media/system/js/core.js">
<script type="text/javascript" src="/media/system/js/modal.js">
<script type="text/javascript" src="/media/system/js/mootools-more.js">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js">
<script type="text/javascript" src="/modules/mod_ariimageslider/mod_ariimageslider/js/jquery.noconflict.js">
<script type="text/javascript" src="/modules/mod_ariimageslider/mod_ariimageslider/js/jquery.nivo.slider.js">

May be the module mod_ariimageslider cause it ... please configure your module properly to not load jquery again.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

FauSt0

Thank you for the fast reply.
I did search the forum, but prolly didn't searched good enough. My bad, sorry for that.

I have no idea how to fix this Jquery issue.

Is there a guide which show step by step how to solve this?

bytelord

Hello,

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

Javascript conflicts:
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

Something more particular i cannot give you because i don't know all templates and modules are been used around (for step by step guide you should ask for support from the module vendor if this one loading jquery). As i said before there is a possibility the module mod_ariimageslider  loads jquery 1.4.4, so you could check your module settings if there is any option to not load jquery, alternative you have edit it's code to see where is loading jquery and comment out that part.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

djex

Hi All ,
First of all check if it works with and without the www. subdomain.
If you set the domain with www /administrator/components/com_virtuemart/virtuemart.cfg.php you should call the website with the www. on front too, to see the "add to cart" button working .
otherwise it wont work.
Cheers!
------