Forum Moderators: buckworks
"Your shopping cart has been saved, the items inside it will be restored whenever you log back into your account."
the problem is, when the customers logs in back, nothing from the previous session remains.
I think it's default feature of OsCommerce, and cannot find any contribution for it.
The restoring seems to be done by 1 line in catalogue/login.php:
$cart->restore_contents();
this comes in this block of code:
..
..
..
tep_session_register('customer_zone_id');tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'");
// restore cart contents
$cart->restore_contents();if (sizeof($navigation->snapshot) > 0) {
..
..
..
(Since the original project is basically killed by Harald Ponce Deleon alientating all of the key developers they are all here now):
The code I quoted is from the shopping_cart.php file, which is immediately inside the main directory (called catalog by default - 'scuse UK spelling in my previous post).
If you can't find the particular lines I quoted I'd download a clean copy and have a look for them there - if they are missing from your copy then you would be having a cart recreation problem I would think!
The actual gubins of the cart recreation is defined inside:
/catalog/includes/classes/shopping_cart.php
since it is a method of the shopping_cart class - I doubt you want to mess around with that.
Does that answer your question? I'm not sure if that is what you were asking, if not let me know and I'll help if I can.