Jump to content

Delete abandoned carts prestashop 1.6


chatoxz

Recommended Posts

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

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...