Post by sitedeveloper999 » Wed Oct 18, 2017 2:23 pm

OC 3.0.2.0 - how can I increase the duration of items staying in the shopping cart? Right now, it seems to delete the cart after 30 minutes or so.
Where is this timer controlled from?

New member

Posts

Joined
Tue Aug 09, 2016 2:09 am

Post by grgr » Fri Oct 20, 2017 9:38 pm

1 Hour.

../system/library/cart.php

Code: Select all

		// Remove all the expired carts with no customer ID
		$this->db->query("DELETE FROM " . DB_PREFIX . "cart WHERE customer_id = '0' AND date_added < DATE_SUB(NOW(), INTERVAL 1 HOUR)");

Image Image Image Image Image Image Image Image


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK
Who is online

Users browsing this forum: No registered users and 25 guests