Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSCommerce for NON-Retail


Guest

Recommended Posts

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

Link to comment
Share on other sites

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'));
 }

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...