Gomlers Posted March 3, 2016 Share Posted March 3, 2016 (edited) Hi all. Anyone know of a module or which sql to run, to clean abandoned carts which did not become an order? Right now I have about 21.000 abandoned carts, and I guess it slows my page siteload a bit - even though I have an insane amount of recourses on my server. If you know which sql query I can run, please help. Or if you know of a module... (Sorry, I hate to say it - but a module like this I'm not interested to pay for - should definately be a corefunction of prestashop) Edited March 3, 2016 by Gomlers (see edit history) Link to comment Share on other sites More sharing options...
Gomlers Posted March 3, 2016 Author Share Posted March 3, 2016 Ok, so there is no on at all in these forums who knows how to write a SQL to delete abandoned shoppingcarts? Link to comment Share on other sites More sharing options...
chatoxz Posted November 21, 2016 Share Posted November 21, 2016 Hello i need this too, please somebody help us. thanks. Link to comment Share on other sites More sharing options...
Daresh Posted February 13, 2018 Share Posted February 13, 2018 Hi, the Tidy module has an option to automatically delete old abandoned carts (and many more nice features) 1 Link to comment Share on other sites More sharing options...
Gomlers Posted February 13, 2018 Author Share Posted February 13, 2018 6 hours ago, Daresh said: Hi, the Tidy module has an option to automatically delete old abandoned carts (and many more nice features) I can confirm that this module works perfect, and does exactly what it is supposed to do - easy and simple to use. Great work 1 Link to comment Share on other sites More sharing options...
Caleydon Posted November 8, 2018 Share Posted November 8, 2018 Use the following SQL query DELETE FROM `ps_cart` WHERE id_cart NOT IN (SELECT id_cart FROM `ps_orders`); DELETE FROM `ps_cart_product` WHERE id_cart NOT IN (SELECT id_cart FROM `ps_orders`); 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now