fibo Posted February 17, 2017 Share Posted February 17, 2017 (edited) Hi everyboy, I'm new on Prestashop. I'm still testing it in a local enviroment. I'm running Prestashop 1.6.1.11 I don't understand after how long the engine considered an order like an empty cart. Is it possible some way to set this time? Thanks Edited July 6, 2017 by fibo (see edit history) Link to comment Share on other sites More sharing options...
w3bsolutions Posted February 18, 2017 Share Posted February 18, 2017 (edited) By "empty cart" do you mean "abandoned cart"? Edit: a cart is considered abandoned if it is not confirmed into an order 24 hours after it has been created. You could change this value in /controllers/admin/AdminCartsController.php line 46 IF (IFNULL(o.id_order, \''.$this->l('Non ordered').'\') = \''.$this->l('Non ordered').'\', IF(TIME_TO_SEC(TIMEDIFF(\''.pSQL(date('Y-m-d H:i:00', time())).'\', a.`date_add`)) > 86400, \''.$this->l('Abandoned cart').'\', \''.$this->l('Non ordered').'\'), o.id_order) AS status, IF(o.id_order, 1, 0) badge_success, IF(o.id_order, 0, 1) badge_danger, IF(co.id_guest, 1, 0) id_guest'; the number 86400 is 24 hours in seconds. If you want to change it and don't lose the change with future upgrades you should create an override: http://doc.prestashop.com/display/PS16/Overriding+default+behaviors Edited February 18, 2017 by w3bsolutions (see edit history) Link to comment Share on other sites More sharing options...
fibo Posted February 18, 2017 Author Share Posted February 18, 2017 Hi! Yes, I mean exactly this. Thank you so much. I've translated it in a bad way ;-) Have a nice day 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