Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login first of all


eurosystem

Recommended Posts

Add the following code to the bottom of includes/application_top.php (just before the ?>):

  if ((basename($PHP_SELF) != "login.php") || (basename($PHP_SELF) != "create_account.php")) || (!tep_session_is_registered('customer_id'))) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

Customers will only be able to access create_account.php (to set up a new account) or login.php (to log in) until they have logged in. Any attempt to get to another page will result in a redirect to the login page.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...