Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Mod so only people in the customer list can view


Recommended Posts

I was just wondering if thier was a mod or anything that could be set up to allow only people logged in to view or would guys just recommend I buit a seperate log in on the index.php file and put something like isloggedin == true then okay

{ else


go to login page



I am just hoping thier is something already created

Link to comment
Share on other sites

There is a mod. Just add this code to the bottom of includes/application.top.php:

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

Visitors can only see the Login and Create Account pages. Everything else redirects to the Login page (until they've logged in.)




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

Link to comment
Share on other sites


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

  • Create New...