chatoxz Posted November 21, 2016 Share Posted November 21, 2016 Hi want to delete abandoned carts, i came out with a mysql code after studying the db, can someone tell if it is right? DELETE FROM cart_product WHERE id_address_delivery = 0; DELETE FROM cart WHERE id_address_delivery = 0; i have to delete something else? i run it on me test environment and works fine. Greetings Link to comment Share on other sites More sharing options...
Daresh Posted November 21, 2016 Share Posted November 21, 2016 Having address 0 doesn't mean that the cart is abandoned. Abandoned cart is every cart that didn't turn into an order. I am currently working on a module that will allow to delete old abandoned carts with one click or a cron task, it should be ready tomorrow. Link to comment Share on other sites More sharing options...
chatoxz Posted November 21, 2016 Author Share Posted November 21, 2016 Hi thanks for the answer, i know address 0 doesn't mean that the cart is abandoed but what other condition should i check or maybe i not looking at the problem in the right angle. Link to comment Share on other sites More sharing options...
Daresh Posted December 1, 2016 Share Posted December 1, 2016 You should rather write some script in PHP to iterate carts and delete them, the module I mentioned doing this is ready and available here: Prestashop Tidy 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