Jump to content

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

Saving Shopping Cart Contents - Cookies Etc Info Rate Topic   - - - - -

 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 2304 posts

Posted 17 January 2018 - 11:37 AM #1

Hi all, I'm wondering, does anybody know exactly how cs-cart handles shopping cart contents?

 

For example: if someone is shopping without logging in, is their cart saved? Maybe only until their IP address changes or something?

 

And what if somebody is logged in? Is it then saved forever or until we clear it?

 

Help would be greatly appreciated.


When life hands you lemons, bring on the Tequila baby!


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19764 posts

Posted 17 January 2018 - 01:14 PM #2

If I remember correctly, it depends on the COOKIE_ALIVE_TIME constant which is defined in the config.php file. Default value is one week


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3839 posts

Posted 17 January 2018 - 03:17 PM #3

I mentioned this in another post recently but so far I have noticed that unregistered users abandoned carts clear after a month and I haven't reached a point yet for registered users.  I have registered users abandoned carts over 3 months old.  I used to delete them after 2 weeks but I am trying to see if registered users ever delete automatically.



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11384 posts

Posted 17 January 2018 - 11:08 PM #4

The cart is part of the SESSION which is in fact managed by COOKIE_ALIVE_TIME.  One part of admin login is to scan the sessions table and delete any entries where TIME - COOKIE_ALIVE_TIME > timestamp in the session table.  Those entries are deleted.

 

There seems to be a bug on the abandoned carts page that will NOT allow you to delete unregistered user's carts.  Registared users delete fine. but unregistered will only be deleted from the above expiration method.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3839 posts

Posted 18 January 2018 - 05:07 AM #5

So help me wrap my head around this one.  If a customer has an abandoned cart that is more than 2 weeks old, it will no longer show up when they visit again because the COOKIE_ALIVE_TIME will have expired after 2 weeks?



 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 548 posts

Posted 18 January 2018 - 06:07 AM #6

So help me wrap my head around this one.  If a customer has an abandoned cart that is more than 2 weeks old, it will no longer show up when they visit again because the COOKIE_ALIVE_TIME will have expired after 2 weeks?

 

Correct.


PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).