Jtran Posted June 26, 2007 Share Posted June 26, 2007 Hi all, I want to know if this is possible at all. I don't want guests to browse the store (oscommerce 2.2), only registered users can log on, browse and buy products. These registered users can only be created by an admin (through admin interface). Any help is appreciated. Link to comment Share on other sites More sharing options...
Guest Posted June 26, 2007 Share Posted June 26, 2007 Hi all, I want to know if this is possible at all. I don't want guests to browse the store (oscommerce 2.2), only registered users can log on, browse and buy products. These registered users can only be created by an admin (through admin interface). Any help is appreciated. Check out the contributions area. Link to comment Share on other sites More sharing options...
satish Posted June 26, 2007 Share Posted June 26, 2007 // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT)); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } paste this on index.php after require application_top.php Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
Guest Posted June 26, 2007 Share Posted June 26, 2007 // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT)); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } paste this on index.php after require application_top.php Satish How does this help to create an account in admin? Link to comment Share on other sites More sharing options...
Jtran Posted June 27, 2007 Author Share Posted June 27, 2007 Leslie, I checked out the contributions area and couldn't find anything that fits my requirements. Satish, That won't help with creating new account in admin area. any more ideas? Link to comment Share on other sites More sharing options...
Jtran Posted June 27, 2007 Author Share Posted June 27, 2007 Thank you both for your help. I used Satish's code, along with "create account in admin" contribution and it seems to work great. Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.