cgchris99 Posted December 18, 2003 Share Posted December 18, 2003 Is it possible to display only the front(top) page until the user logs in. I need to be able to block anyone that does not have an account. I don't want them to see products or prices until they have access. Thanks for any information Link to comment Share on other sites More sharing options...
geenygreat Posted December 18, 2003 Share Posted December 18, 2003 You can put the following line in every file in catalog folder (except index.php, password_forgotten.php, login.pho and logoff.php or the pages you do not want to protect): // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } below the line: require('includes/application_top.php'); Link to comment Share on other sites More sharing options...
cgchris99 Posted December 19, 2003 Author Share Posted December 19, 2003 Thanks for the info Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.