Post by sebstore » Thu May 09, 2019 4:46 am

Gents,

I have changed the version from 1.5 to the newest 3 version. In basically after few min products are disapearing from the cart. It looks like something is refreshing. I have no clue what is wrong. Nothing was changed in the core files. I am using OXY template. I hope you will be able to help me I am so tired of this new version...

New member

Posts

Joined
Tue May 15, 2012 5:25 pm

Post by letxobnav » Thu May 09, 2019 7:26 am

normally the cart items are removed after 1 hour for guests only by the cart class itself.

other possibility would be if you lose the session which would be a problem.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by sebstore » Thu May 09, 2019 7:35 am

Thank you letxobnav for your time and reply. Do you know if we can change this time or switch this off?

Best regards,

Sebastian

New member

Posts

Joined
Tue May 15, 2012 5:25 pm

Post by letxobnav » Thu May 09, 2019 7:54 am

yes, in the class file system/library/cart/cart.php

change the INTERVAL value

Code: Select all

$this->db->query("DELETE FROM " . DB_PREFIX . "cart WHERE (api_id > '0' OR customer_id = '0') AND date_added < DATE_SUB(NOW(), INTERVAL 1 HOUR)");
to

Code: Select all

$this->db->query("DELETE FROM " . DB_PREFIX . "cart WHERE (api_id > '0' OR customer_id = '0') AND date_added < DATE_SUB(NOW(), INTERVAL 5 HOUR)");
use any value you like.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Thu May 09, 2019 6:11 pm

letxobnav wrote:
Thu May 09, 2019 7:26 am
other possibility would be if you lose the session which would be a problem.
Sounds like sessions to me, see if these are in php.ini:

Code: Select all

session.gc_maxlifetime = 21600
session.gc_probability = 1
session.gc_divisor = 100
More info here:
https://www.antropy.co.uk/blog/opencart ... illing-up/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by letxobnav » Thu May 09, 2019 6:49 pm

production value for session.gc-divisor is 1000

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Thu May 09, 2019 6:53 pm

letxobnav wrote:
Thu May 09, 2019 6:49 pm
production value for session.gc-divisor is 1000
Depends what outcome you want doesn't it?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by letxobnav » Thu May 09, 2019 6:54 pm

that goes for everything in life.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Thu May 09, 2019 6:55 pm

letxobnav wrote:
Thu May 09, 2019 6:54 pm
that goes for everything in life.
Exactly, even smoking is a great life choice ... if you want to die a slow, painful death :crazy: :laugh:

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Bing [Bot] and 27 guests