stefan_p Posted November 14, 2007 Posted November 14, 2007 Is it possible to make oscommerce shop available for registered user only? I want to have login box only on index page. Users will get user names and passwords from me. Shop would be visible only for logged in users. Can someone give a tip how to do this?! Thanks
whysigh Posted November 14, 2007 Posted November 14, 2007 How about you add password protection on the whole catalog folder, as you would do for the admin pages| create .htacess file? or use your hosting control panel to add that if possible? ie. protect: home/sites/yourdomain/catalog place the htaccess file in there? and then possible create an index.html page with a link to that protected folder? simple and quickest way, i think? just an idea
stefan_p Posted November 14, 2007 Author Posted November 14, 2007 I will consider that idea, thanks. But I would like my client to log in only ones! If I do it using htaccess, client will have to login twice: first to have access to the shop and second time to be able to by products.
whysigh Posted November 14, 2007 Posted November 14, 2007 I will consider that idea, thanks. But I would like my client to log in only ones! If I do it using htaccess, client will have to login twice: first to have access to the shop and second time to be able to by products. yeah, i understand what your saying, erm, I have seen it done before, but not something I have done myself, so there is a way, looks like we gotta wait for the really clever people to get out of bed! lol but can i just ask, why would you want to just single your shop to only pre-registered users? just out of interest really?
stefan_p Posted November 14, 2007 Author Posted November 14, 2007 It will be a shop for a single company only. They are cooperating with me and I want them to send all orders through the shop. So my shop must be available for them only! There will be many users with different user names which I will provide.
whysigh Posted November 14, 2007 Posted November 14, 2007 It will be a shop for a single company only. They are cooperating with me and I want them to send all orders through the shop. So my shop must be available for them only! There will be many users with different user names which I will provide. http://www.oscommerce.com/forums/index.php?showtopic=176221 does this help, looks like there is a contib that can help you?
satish Posted November 14, 2007 Posted November 14, 2007 if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } paste this on all pages apart from login page and index.php page 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.