Results 1 to 2 of 2

login or create account as the home page with hiden catalog

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 ...

      
  1. #1
    New Member
    Join Date
    Nov 2003
    Posts
    10
    Rep Power
    0


    Default login or create account as the home page with hiden catalog

    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

  2. #2
    New Member
    Join Date
    Nov 2003
    Posts
    10
    Rep Power
    0


    Default

    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

Similar Threads

  1. login and create account[oscommerce 2.2] newbie needs help!
    By syaiful_bahri in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 03-19-2005, 01:33 AM
  2. OScommerce : can't create or login to an account
    By digitalmelody in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 10-18-2004, 01:00 AM
  3. State list missing on Create Account Page
    By zTech in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-13-2004, 09:15 AM
  4. how 2 change text in create new account box next to login
    By karmakat in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 04-14-2004, 06:20 PM
  5. bypass SSL login/myaccount/create account
    By thesauce98 in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 03-16-2004, 01:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •