Reputation: 23
I have a problem with add to cart button. After I pressed, I need wait 4 - 6 seconds. If you open console, you will see 3 calls with 2 - 3 seconds every. The wesite is: https://wowpet.ro .
I tried:
Can you help me with a suggestion?
Thank you!!
Upvotes: 1
Views: 2188
Reputation: 1622
During AJAX add to cart many checks are performed on DB, so make sure to check and keep DB ps_cart_rule table as clean as possible, especially if you have many "automatic rules" without coupon code and/or not binded to specific conditions (id_customer etc.) or you are using third party module to massively generate cart rules.
Always perform regular manteinance by deleting expired / inactive cart rules from time to time and you'll see major improvements in TTFB when adding products to cart.
Upvotes: 0
Reputation: 1491
There was an issue in one of the PrestaShop version, where due too high timeout set inside core javascript files, we could see slow processing of this request. I suggest to work on an update to newer version, of course you'll need to do that on some dev version, not directly on a production site.
Upvotes: 1