1 out of 1 members found this post helpful.
Re: Hide site to all but registered customers (wholesale site)
This has been asked before a few times ... if you have a quick browse through oscommerce or google you will find a couple of options.
This one is the easiet and best: osCommerce Community Add-Ons
3 line install
find \Includes\application_top.php
Add this code before the last "?>" symbol
if (strpos($PHP_SELF, "login.php") == 0 && strpos($PHP_SELF, "logoff.php") == 0 && strpos($PHP_SELF, "create_account.php") == 0 && strpos($PHP_SELF, "create_account_success.php") == 0 && strpos($PHP_SELF, "privacy.php") == 0 && strpos($PHP_SELF, "conditions.php") == 0 && strpos($PHP_SELF, "password_forgotten.php") == 0)
{
if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
}
Just change the filenames to the ones you want to let them access - job done!
Regards,
pgmarshall
_______________________________
Bookmarks