Trying to restore cart on a custom build page
Posted: Sat May 01, 2021 2:02 pm
Hi Everyone, i have a own php file, called recovert_cart.php, after checking for a onetime password and checking if its valid, i want to restore session + shopping cart + autologin
(in did the code for early Oscommerce version and this does not work anymore of course...)
i try to understand the hook system and i thought i could make this code:
i hoped that after setting the global and call the hook (like in login.php) it will do the login / recreate cart ....
can somebody point me to the right direction?
thank you so much
(in did the code for early Oscommerce version and this does not work anymore of course...)
i try to understand the hook system and i thought i could make this code:
Code: Select all
if ( is_int($cID) && ($cID > 0) ) {
$GLOBALS['login_customer_id'] = $cID;
$OSCOM_Hooks->call('siteWide', 'postLogin');
tep_redirect(tep_href_link('shopping_cart.php','ad=recover_cart'));
}can somebody point me to the right direction?
thank you so much