Guest Posted May 15, 2008 Posted May 15, 2008 Hiya. I have a website, www.vendorsmartfleamarket.com , and am using OSCOMMERCE 2.2rc2. This is a non retail site, so I have removed the shopping cart, and the majority of product links. The kink I have ran into though is, I am wanting certain parts of the site restricted to "members only". I cannot seem to find a contribution for this. I have found a contribution to make the whole site private (which I am using now), but I would like to undo that, because it stops potential customer traffic. So my question is "How to I password protect certain pages, but not the rest, ie.... my Newsletter page? If you have a solution please feel free to email me, or respond to this post. Thanks, Josh
Guest Posted May 15, 2008 Posted May 15, 2008 For each page you want to restrict to registered members only put the following code into the pages: // 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')); }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.