This is a discussion on login or create account as the home page with hiden catalog within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello, Looking to have the login as the home page with out the customer being able to view catalog or ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hello, Looking to have the login as the home page with out the customer being able to view catalog or other listings before logging in or creating an account. I am using IIS server and I can not get htaccess to work with this server. can the login.php be coded to handle this? Thank you K |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| Hello, Think I got it. I included: CODE // 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')); } in the top of index.php after "reqires aplication top" and at the top of each page to reqire a registered login. Found it by looking at the account.php page. Wonder if I can limit this code to only the Index.php page and remove the links to other site listings on the login.php page. Anyway this does work. Thank you K |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| login and create account[oscommerce 2.2] newbie needs help! | syaiful_bahri | osCommerce 2.2 Installation Help | 0 | 03-19-2005 01:33 AM |
| OScommerce : can't create or login to an account | digitalmelody | osCommerce 2.2 Installation Help | 0 | 10-18-2004 01:00 AM |
| State list missing on Create Account Page | zTech | osCMax v1.7 Discussion | 1 | 09-13-2004 09:15 AM |
| how 2 change text in create new account box next to login | karmakat | osCMax v1.7 Installation | 1 | 04-14-2004 06:20 PM |
| bypass SSL login/myaccount/create account | thesauce98 | osCMax v1.7 Discussion | 4 | 03-16-2004 01:56 PM |