Post by tlegends » Thu Jan 24, 2019 1:06 pm

When a guest puts items in a cart and does not check out or login, the items in the cart are removed after one hour
I have changed system/library/cart/cart.php line 15 to
$this->db->query("DELETE FROM " . DB_PREFIX . "cart WHERE (api_id > '0' OR customer_id = '0') AND date_added < DATE_SUB(NOW(), INTERVAL 8 HOUR)");
Cleared both caches from the dashboard and disabled the php cache on the server
This has not changed the time length. what else do I have to do? or should the code be HOURS rather than HOUR?

Newbie

Posts

Joined
Thu Apr 14, 2016 10:45 am

Post by paulfeakins » Thu Jan 24, 2019 6:56 pm

It could be to do with the PHP sessions on the server, you might be able to extend those via php.ini:
https://stackoverflow.com/questions/831 ... out-in-php

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by opencartmart » Thu Jan 24, 2019 11:18 pm

Have you refreshed ocmod list in admin -> extension -> Modifications? Maybe ocmod has been modified that file.

XForm - Opencart Form Builder

Xshippingpro - An advanced Shipping Module


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am
Location - Dhaka, Bangladesh

Post by tlegends » Fri Jan 25, 2019 3:31 am

opencartmart wrote:
Thu Jan 24, 2019 11:18 pm
Have you refreshed ocmod list in admin -> extension -> Modifications? Maybe ocmod has been modified that file.
This was the problem, the modifications had to be refreshed!

Newbie

Posts

Joined
Thu Apr 14, 2016 10:45 am

Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am
Location - Dhaka, Bangladesh
Who is online

Users browsing this forum: No registered users and 6 guests