rb10 Posted March 20, 2019 Share Posted March 20, 2019 Hi, there is a way to delete abandoned Carts after 48 hours ? Thanks Link to comment Share on other sites More sharing options...
rb10 Posted March 21, 2019 Author Share Posted March 21, 2019 Hi, im thinking about create a cron task, that delete directly in sql ? Could be possible? Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2019 Share Posted March 21, 2019 Not sure about time scales, but there is a free module : https://mypresta.eu/modules/administration-tools/database-optimization.html Link to comment Share on other sites More sharing options...
rb10 Posted March 21, 2019 Author Share Posted March 21, 2019 1 minute ago, haylau said: Not sure about time scales, but there is a free module : https://mypresta.eu/modules/administration-tools/database-optimization.html This have possibility to automate delete cart ? Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2019 Share Posted March 21, 2019 I think that it is manual. But talk to the developer directly - there is a pro-version also Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2019 Share Posted March 21, 2019 Actually the pro version does look automated https://mypresta.eu/modules/administration-tools/database-optimization-pro.html Link to comment Share on other sites More sharing options...
rb10 Posted March 21, 2019 Author Share Posted March 21, 2019 ok, thanks i ll try to contact him, Link to comment Share on other sites More sharing options...
rb10 Posted March 21, 2019 Author Share Posted March 21, 2019 meanwhile im wait reply, i have found this sql query $sql = "DELETE psez_cart_product FROM psez_cart_product JOIN psez_cart ON psez_cart.id_cart = psez_cart_product.id_cart WHERE DATE(psez_cart.date_add) < DATE_SUB( NOW( ) , INTERVAL 48 HOUR)"; and $sql = "DELETE FROM psez_cart WHERE DATE(psez_cart.date_add) < DATE_SUB( NOW( ) , INTERVAL 48 HOUR)"; Could be correct? Could be insert this inside a php script and do a cron task of this script ? Thanks Link to comment Share on other sites More sharing options...
rb10 Posted March 22, 2019 Author Share Posted March 22, 2019 Anyone thing this is correct? 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