Developer forum

Forum » Ecommerce - Standard features » Delete stalled carts

Delete stalled carts

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a situation where I need to delete unfinished carts after a few hours.
I remember that a few versions ago if the cart cookie was referencing an invalid cart, we got a yellow error.

Is that still the case? Can I safely use an SQL script to delete all carts older than a number of hours? Is there any alternate way?

Thank you,

Adrian

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Adrian

You should probably set the cookie timeout to match that of clearing of carts.

I hope you do not get a YSOD if you do this. If you do, that would be a bug that we will fix.

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

I have set the Cart session timeout to 60 minutes:

 

And product reservation and save for later to 0:

 

Is that enough?

Thank you,
Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Looks good!

 

You must be logged in to post in the forum