Author Topic: Problem with adding to the cart in my store  (Read 230 times)

sylwekb

  • Jr. Member
  • **
  • Posts: 80
Problem with adding to the cart in my store
« 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

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2285
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Problem with adding to the cart in my store
« Reply #1 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
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

StefanSTS

  • Global Moderator
  • Jr. Member
  • *
  • Posts: 388
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: Problem with adding to the cart in my store
« Reply #2 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.

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

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

sylwekb

  • Jr. Member
  • **
  • Posts: 80
Re: Problem with adding to the cart in my store
« Reply #3 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?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8946
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Problem with adding to the cart in my store
« Reply #4 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











GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sylwekb

  • Jr. Member
  • **
  • Posts: 80
Re: Problem with adding to the cart in my store
« Reply #5 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?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8946
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Problem with adding to the cart in my store
« Reply #6 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation