VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: boucdur on March 23, 2012, 18:06:21 PM

Title: Add to cart issue again (sorry but I can't find the solution)
Post by: boucdur on March 23, 2012, 18:06:21 PM
Hello,

when clicking on "add to cart" in a product details page I am redirected to the checkout page and don't get any popup modal window as expected.

I read quite a lot about the numerous problems people have with the "add to cart" button.
still it doesn't work on my website.

I tried to disable all the modules, I don't have scripts on my page neither i load a jquery script on my page.
i tried enabling and disabling   : configuration/shop/Use external google jquery library
i tried enabling and disabling   : configuration/templates/Using the Virtuemart jQuery
When both are enabled I do have two calls to different jquery script. But apprently they both come from virtuemart.
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>




Here is my page :
http://www.francois-rosenbaum.com/staging/test_virtuemart/pantalons/pantalon-3-detail

Does anyone know what is happening and what I can do ?

I use virtuemart 2.02 and joomla 2.5
thanks everyone for helping


Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: PRO on March 23, 2012, 18:28:56 PM
worked for me in firefox, and IE
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: boucdur on March 23, 2012, 18:38:08 PM
It does work on my computer with "internet explorer8" and chrome but not with firefox 3.6.24.
when showing I don't have any styles on the modal pop up
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: PRO on March 23, 2012, 19:44:31 PM
boucdur,
I am using firefox 11.

Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: boucdur on March 25, 2012, 13:08:13 PM
Ok but unfortunatly 7% of the people use firefox 3.6 if I believe google analytics on my personnal website.

It should work, shouldn't it ?
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: PRO on March 25, 2012, 14:22:21 PM
Yes, but there is no way to test it
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: boucdur on March 26, 2012, 12:17:53 PM
hello again,

Sure it's difficult to test the problem whithout firefox 3.6

However I see when I look at the code that there are two calls to jquery.

  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>


It seems that those two calls are made by virtuemart.
Is that normal ?

As I read in the different posts that's not good to have more than one call to jquery maybe it wiould maybe solve the problem to get only one call to jquery ?

Do you think i can achieve this in one way or an other ?
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: jenkinhill on March 26, 2012, 13:39:46 PM
The first script call is to the jQuery main library. The second to jqueryui is the jQuery user interface library  - you need both.
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: PRO on March 26, 2012, 14:27:40 PM
try without the skitter slideshow module enabled
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: boucdur on March 26, 2012, 16:02:32 PM
even when I disable absolutly all the modules (in the module manager) it still doesn't work in firefox 3.6
and when I look at the source code I still have this :
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>


but this is not the problem anyway as jenkinhill told me.
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: PRO on March 26, 2012, 16:59:31 PM
have you tried using the vmart jquery, and turning off external jquery?
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: boucdur on March 26, 2012, 17:18:42 PM
Yes. but it doesn't work better
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: boucdur on March 26, 2012, 17:40:43 PM
I just tried to install a all new joomla 2.5 with the example datas then I installed a all new virtuemart 2.02 with the example datas as well.
I uninstalled the component which is usds to install the plugins as it's explained during the installation process
i did nothing more

I tested to click the "add to cart" button on firefox 3.6 and I still don't have the modal pop telling me the product is added to my cart.
Just like on my previous test page when i refresh the page the product is in my cart.
I tried to click very quicly ten times on the "add to cart" button nothing happenned and then when I refreshed the page 4 new products were added in the cart.

I even tried a second time on a other computer with firefox 3.6 as well and it is just the same.

it seems to me it's a problem in "virtuemart 2" that everybody have as well probably ?
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: PRO on March 26, 2012, 21:27:49 PM
boucdur, I noticed on your site you have some custom styling in the cart module.

Have you tried without it?

Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: jenkinhill on March 26, 2012, 23:53:51 PM
I just Googled firefox 3.6 bugs - a whole lot of issues..... No way would I use an old browser like that.
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: boucdur on March 27, 2012, 00:28:37 AM
Thank you for your answers,

I tried with a completly new website joomla 2.5 website and viruemart 2.02 wirth all the sample data with the default joomla template on.
The modal pop up doesn't work on firefox 3.6
http://www.francois-rosenbaum.com/staging/virtuemart_defaut/boutique/ladder-detail

I tried anyway to remove the stylesheet on my other test website with my own custom template.
Same thing, the modal pop up doesn't work on firefox 3.6
http://www.francois-rosenbaum.com/staging/test_virtuemart/pantalons/pantalon-1-detail

I agree with you jenkinhill, firefox is an old browser and everyone should upgrade it.
I use it myself only for a testing purpose.
Unfortunatly the statistics show that more than 5% of the users use this one.
http://www.w3schools.com/browsers/browsers_firefox.asp

So if I make a website for an important client I reckon I shouldn't ignore them.

Furthermore I tried to test in internet explorer 7 as well using the software ietester
It's true this browser is almost dead but not completly
3.3% of users use still this one in France
and still 0.85% still use internet explorer (I don't work anymore for them)
So alltogether if virtuemart 2 proves to have a problem on this "add to cart" function that means 8% of people can't buy anything on an ecommerce website virtuemart 2.
Then maybe it's not ready for production websites targeting everybody.

Or would that work better with an other hostong compagny ?
Title: Re: Add to cart issue again (sorry but I can't find the solution)
Post by: boucdur on March 27, 2012, 00:56:41 AM
ok let's say I don't care about those 8 % of people who will soon disapear.
Still it would be better without that issue.