VirtueMart Forum

VirtueMart 2 + 3 => Administration & Configuration => Topic started by: sylwekb on July 31, 2019, 10:30:54 am

Title: Problem with adding to the cart in my store
Post by: sylwekb on July 31, 2019, 10:30:54 am
Joomla 3.9.10, VM 3.4.2, theme Horme 3 version 1.9
Hello
There is a problem with adding to the cart in my store, but only in the product details. After clicking the "to basket" button, they had, processed indefinitely. Has anyone had a similar problem and how to solve it? When it comes to products in the category, they add up without a problem. The hosting provider reported a problem with the site's scripts but could not say exactly what page scripts it was about. Site scripts cause very high CPU saturation. How can you solve this problem?

A sample page with product details.
https://darius-przyczepy.pl/czesci-i-akcesoria-kempingowe/lusterka-do-holowania-przyczep/lusterko-podwojne-detail
Title: Re: Problem with adding to the cart in my store
Post by: Jörgen on July 31, 2019, 10:58:36 am
Works with Google chrome Version 76.0.3809.87 until I put the 4:th or 5:th product in the cart.

Tried this with template protostar ?

Have You perhaps ticked use extern google jquery library ?

Jörgen @ Kreativ Fotografi
Title: Re: Problem with adding to the cart in my store
Post by: StefanSTS on July 31, 2019, 11:00:43 am
I guess, you have a problem with a mootools script.
Try to update all your extensions and see that they use jQuery not mootools.

Title: Re: Problem with adding to the cart in my store
Post by: sylwekb on July 31, 2019, 11:07:22 am
In the Virtuemart configuration, I have the Google JQuery library checked. Should I uncheck it?
I can not find mootools. Where to look for it?
Title: Re: Problem with adding to the cart in my store
Post by: GJC Web Design on July 31, 2019, 11:09:52 am
you have a JS error

TypeError: window.addEvent is not a function lusterko-podwojne-detail:65:22
    <anonymous> https://darius-przyczepy.pl/czesci-i-akcesoria-kempingowe/lusterka-do-holowania-przyczep/lusterko-podwojne-detail:65



  line 65 ->             window.addEvent('load', function() {
                var cookies = document.cookie.split(';');
                if(!cookies.length)
                  document.getElementById('panel_cookie_dol').style.display='none';
               });

at a guess this is called before the DOM has loaded -- site 1st load was EXTREMELY slow
it is to do with the cookie message

subsequent loads with the cookie accepted were faster and this error didn't appear
add to cart works

delete the cookie_info cookie and back to huge delay .. with no cookie there are 100's of these ajax calls and the browser locks

see screen

try disabling the cookie check











Title: Re: Problem with adding to the cart in my store
Post by: sylwekb on July 31, 2019, 11:25:56 am
Thank you very much. I have disabled this module. Is there any module that can be replaced and will work properly?
Title: Re: Problem with adding to the cart in my store
Post by: GJC Web Design on July 31, 2019, 11:38:38 am
your using the Fedias3 template from olympian templates .. it has its own built in cookie accept script that works fine

just make a custom module with your text and publish to the cookie position
Title: Re: Problem with adding to the cart in my store
Post by: Michaelsd on April 20, 2020, 11:23:31 am
When I press Add to Cart button I get an error saying: "There was an error while updating your cart. Please try again."  and the Quantity field becomes red xxxxxxxxxxxxxxxxxx
Title: Re: Problem with adding to the cart in my store
Post by: StefanSTS on April 20, 2020, 11:33:55 am
If you describe your problem with one sentence your question might be deleted soon because the moderators could consider this as spam. And by the amount of spam they have to delete all the time they don't look too close.

So if you have a problem in your store please describe the whole system properly, so the moderators see, that you are a human being writing helpful text in efford to solve your problem, and not a spamer copy pasting something to gain posts.

Thank you
Stefan