Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Visitors / guests


glennie55

Recommended Posts

Hi ,

 

Is there anyway to block visitors from seeing only the index.php and no further ,

 

only registered members can get past the index.php ,

 

Basically i need people to register to view any pages in the store , as to regulate who can and who connot view and purchase products in the store ,,,,

 

Glenn ...

Link to comment
Share on other sites

Hi ,

 

Is there anyway to block visitors from seeing only the index.php and no further ,

 

only registered members can get past the index.php ,

 

Basically i need people to register to view any pages in the store , as to regulate who can and who connot view and purchase products in the store ,,,,

 

Glenn ...

 

 

I have set one up for a friend before that does this... If you like I can try and get the code for you..

 

Mike

Link to comment
Share on other sites

all files in your root folder that you would like to protect change

 

 require('includes/application_top.php');

to

 

 require('includes/application_top.php');

if (!tep_session_is_registered('customer_id')) {
  $navigation->set_snapshot();
  tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}

 

or i think you could also use

http://www.oscommerce.com/community/contri...arch,DIMSUMGIRL

 

greetz john

Link to comment
Share on other sites

  • 2 weeks later...
all files in your root folder that you would like to protect change

 

 require('includes/application_top.php');

to

 

 require('includes/application_top.php');

if (!tep_session_is_registered('customer_id')) {
  $navigation->set_snapshot();
  tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}

 

or i think you could also use

http://www.oscommerce.com/community/contri...arch,DIMSUMGIRL

 

greetz john

 

 

sorry about not getting back earlier been having probs with forum ,,,

 

thanks for the info however it will not work on my site as it stops customers from login in ,

 

i inserted the text into page closed down IE reopened and tried the link worked great sent me straight to login page however when i tried to login it gave me a 404 error ,

 

i have a pig server and had to insert some special text into page to be able to even login to the store ,,

The text i had to add to even login as a customer

 

tep_redirect(tep_href_link(FILENAME_DEFAULT,", 'SSL'));

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...