Guest Posted December 15, 2004 Posted December 15, 2004 I would like to change the page a user is taken to when they login. ANy suggestions on how to do this? thanks in advance
Guest Posted December 16, 2004 Posted December 16, 2004 The redirect may be found in catalog/login.php: if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); tep_redirect($origin_href); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } This code will direct the user to their account page after login if they clicked the account link, or to the checkout if they clicked checkout while not logged in, or to the main page of the catalog (FILENAME_DEFAULT). I suppose you could change it to simply: tep_redirect(tep_href_link(FILENAME_YOUR_FILE)); Matti
icemanarh Posted June 8, 2005 Posted June 8, 2005 Along the same lines as this topic, I am trying to change the redirect of the failed login. I made a custom error page, but can not figure out how to do this. Please can somebody help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.