Jump to content

[SOLVED] Empty cart


fibo

Recommended Posts

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 by w3bsolutions (see edit history)
Link to comment
Share on other sites

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...