Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Lifetime Product In Cart Rate Topic   - - - - -

 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 217 posts

Posted 28 August 2019 - 12:48 PM #1

We now exact where to change lifetime of cart ?

I know i change it from 2 weeks in to 1 day but work only for anonymous users(not register)

 

If i add some product to cart( X, Y), after that on checkout sign in with my account.... he add another old products from few days a go....after my X and Y allready added


CS Cart lovers


 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 217 posts

Posted 04 September 2019 - 11:35 AM #2

I guess i broke english language again :(


CS Cart lovers


 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 217 posts

Posted 26 September 2019 - 06:12 AM #3

?


CS Cart lovers


 
  • ikoshkin
  • Tech Writer
  • CS-Cart Architects
  • Join Date: 25-Nov 15
  • 451 posts

Posted 26 September 2019 - 06:23 AM #4

When a customer doesn't sign in, he or she can still add products to cart. These products are stored in a so-called session. The session's life time is determined by the following code in config.php:
 
// Sessions storage live time
define('SESSIONS_STORAGE_ALIVE_TIME',  SECONDS_IN_DAY * 7 * 2); // 2 weeks
This also determines for how long a customer stays signed in if he or she doesn't visit your store.

 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 217 posts

Posted 26 September 2019 - 06:40 AM #5

Yes... i change this to one day

But work only for anonymous users (not sign in)

 

If user sign in still get oldest products in cart


CS Cart lovers


 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 217 posts

Posted 26 September 2019 - 06:41 AM #6

// Number of seconds in one hour (for different calculations)
define('SECONDS_IN_HOUR', 60 * 60); // one hour

// Number of seconds in one day (for different calculations)
define('SECONDS_IN_DAY', SECONDS_IN_HOUR * 24); // one day

// Live time for permanent cookies (currency, language, etc...)
define('COOKIE_ALIVE_TIME', SECONDS_IN_DAY * 24); // one day

// Session live time
define('SESSION_ALIVE_TIME', SECONDS_IN_HOUR * 2); // 2 hours

// Sessions storage live time
define('SESSIONS_STORAGE_ALIVE_TIME',  SECONDS_IN_DAY * 1 * 0); // 1 days

CS Cart lovers


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3310 posts

Posted 26 September 2019 - 09:14 AM #7

When I check Abandoned / Live carts I see many carts containing "deleted product", why are those not removed / disapear ?