News:

Looking for documentation? Take a look on our wiki

Main Menu

Problem with adding to the cart in my store

Started by sylwekb, July 31, 2019, 10:30:54 AM

Previous topic - Next topic

sylwekb

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

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

StefanSTS

I guess, you have a problem with a mootools script.
Try to update all your extensions and see that they use jQuery not mootools.

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

sylwekb

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?

GJC Web Design

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











GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sylwekb

Thank you very much. I have disabled this module. Is there any module that can be replaced and will work properly?

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Michaelsd

#7
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

StefanSTS

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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.