Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Restrict Access to certain pages


oddie

Recommended Posts

You can't. You can limit access to people that have registered and are LOGGED IN though if that's what you mean:

 

  if (!tep_session_is_registered('customer_id')) {

   $navigation->set_snapshot();

   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

 }

 

Will only show the page to logged in users. Others get re-directed to login.php

 

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

  • 2 weeks later...
You can't. You can limit access to people that have registered and are LOGGED IN though if that's what you mean:

 

  if (!tep_session_is_registered('customer_id')) {

   $navigation->set_snapshot();

   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

 }

 

Mattice

 

Mattice...where do you add that line of code?

Can you apply it to individual categories, or will it apply to ALLpages?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...