Quick question for you today. I am running an Opencart website, and in the customer table there is a column titled cart which is a serialized array that stores the users’ cart contents i.e.: a:2:{i:92;i:2;i:12;i:3}. Every time a new page on the site is loaded (it could be the home page, the account page; any page), that cart database entry is updated from the session data (basically, the session variable holds the cart contents, and then the contents transfer to the database every page load).
Could you point me to the direction where this method exists AND where it is called?
/system/library/customer.phphas the code in it that you are looking for. It contains all of the possibilities for this (loads when logging in, saves with each page load, and saves to db on logout)