Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2007
    Posts
    14
    Plugin Contributions
    0

    Default Login Redirection

    I am trying to figure out a way to redirect a successful login to a page outside of Zen Cart. ie, you enter your login, it runs the function to check it, and on success, it loads a custom page from a different part of the site. Where is the switch or which language file can I use to change this?

    On a related question, is there a way, without redesigning the wheel, to have multiple redirects? So that if I log in from the index, it shows me page A, but if I am on a different page and login, it takes me to page B?

    thanks

  2. #2
    Join Date
    Jul 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Login Redirection

    I am also trying to find out where the redirection link is. If someone comes to my site and just wants to login, where can I enter the code to redirect the page once they successfully login. I currently have html pages and then zen cart pages for the shopping cart. I was thinking on leading them to the Organic Soap page that lists all the organic soap we have. It goes to the main page which we have nothing on because we don't plan on using it. Can I put SUCCESSFUL LOG-ON on this page with other links if I cannot redirect it?

    Thanks!

  3. #3
    Join Date
    Aug 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Login Redirection

    Hello,

    I am trying to do something similar. Did you ever figure out how to redirect a successful login to a different page? I actually want to go a step farther and have a second login page that allows members to access restricted content. I would like to use the existing Zen Cart user management system to control this instead of creating and maintaining a second set of user accounts.

    Thanks,
    Chris

  4. #4
    Join Date
    Jun 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: Login Redirection

    The redirection after the login process is done via the zen_redirect() function in the includes/modules/pages/login/header_php.php file. Look at lines 130-142 (this may vary).

  5. #5
    Join Date
    Aug 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Login Redirection

    Quote Originally Posted by Chris Rama View Post
    The redirection after the login process is done via the zen_redirect() function in the includes/modules/pages/login/header_php.php file. Look at lines 130-142 (this may vary).
    Thank you so much! This is the directory I have been overlooking and a whole bunch of pieces just fell into place in my brain. Everything makes a heck of a lot more sense now!

    Regards,
    Chris Dunbar

 

 

Similar Threads

  1. Replies: 2
    Last Post: 5 Aug 2011, 01:49 PM
  2. login redirection
    By saxtuplet in forum General Questions
    Replies: 2
    Last Post: 26 Jun 2011, 09:20 PM
  3. Login redirection
    By alexious in forum General Questions
    Replies: 2
    Last Post: 13 May 2011, 03:37 PM
  4. Login redirection question
    By xorfodan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 May 2008, 01:54 PM

Posting Permissions

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