Hello guys,
I am currently facing an issue with my website when I try to add the products to cart, sometimes it works, sometimes it simply doesn't. Ajax pop-up opens up everytime you click on "Add to cart" but sometimes it shows as follow:
Even though it shows 0 and no product information, when I check my backoffice the product is added to a cart and it is not displayed to the customer on the frontpage (shows as empty card):
The thing about this error is that I know the reason why it happens but I cannot find the way to sort it out properly. For some reason, and if you notice on the image above, Prestashop automatically linked the new cart from a customer created to an order ID on the left side. If I open the cart information to check it, it attached the cart to an order made previously like 2 years ago, as seen here:
I am aware that if I delete all the database order history, that might solve it but I don't want to delete the order history. Does anyone knows what is going on or can pinpoint towards the file I need to make some changes or be looking at?
Website link is https://top-garden.net
Please be aware that add to cart sometimes work, sometimes doesn't. If possible, test the website in several browsers with different caches.
What I have done so far:
- Debug mode shows no error at all, I have fixed all errors that appear there;
- Disabled all overrides and all non-native modules;
- Deleted all caches several times;
- Console shows no error at all;
- Changed from PHP 7.4 back to 7.3 just in case;
- Checked the geolocation settings common in other cases;
- Removed cart module and installed it fresh;
- changed the database settings of the id_cart and id_order from INT to BIGINT just in case due to orders going over 10k (just in case this change);
- Turned development mode on on Cloudfare;
- Changed to catalogue mode and replaced it.
Could this be a cache issue? I currently instaured LiteSpeedWebCache Entreprise on the server and running LiteSpeedCache module but since I have disabled it manually, cleaned caches and I still got the error on the cart I am guessing it has nothing to do with it.
Cheers