Jump to content

Cart empties it self


Recommended Posts

Hi all

 

I have a fatal problem on one of my shops, however the biggest problem i have is that i cant reproduce it. Luckily one of my customers has agreed to help so i can test whether my solutions work.

 

If the customer adds a product and goes to the next page the cart is empty. If i look in the backend under customers -> carts, it creates a new cart everytime he adds a product. This makes me think it is a session or cookie issue. I have tried to delete cookies and refresh the session, but that didn't fix the problem.

 

If you have any ideas on how i can reproduce the error or any fixes, please let me know.

 

Version 1.5.3.1

 

cheers, Morten

Link to comment
Share on other sites

The default 'optimize Apache' checkbox sometimes make problem for certain server configurations - remove it and delete the code it adds to the .htaccess and you'll notice the problem is no longer present.

 

It does faulty expire times for some php/html files and after your customers add a product to their carts they see the last version of the files.

Link to comment
Share on other sites

I have narrowed down the problem a bit more. I tried setting up a virtual XP box and the problem only occurs on IE8.

Strangely enough i have a test server which should have the same files, so i assume it's a database issue. Will try tomorrow to copy production database to test database to see if the problem remains.

Link to comment
Share on other sites

A little update

 

I made sure that it had nothing to do with my template by using the same template in a new prestashop installation and there it worked fine. On an identical copy of the production server with the default theme it also fails. However it only fails on the product page and the cart page. If i add the product from the category page (not used in my template) it stays added.

 

I'll continue controlling the database today, but the database is fairly big, so any tips on where the problem might be is welcomed!

Link to comment
Share on other sites

Just to close this topic:

 

I checked backend and access logs and saw that whenever i used IE8 i had 8 simultaneous connections and the reasons was fancybox.

For some reasons the IE only css couldn't figure out the absolut/relative paths along with url rewrites and canonical links.

 

I removed the css that caused the error and the problem disappeared.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...