Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Login Should Redirect to ACCOUNT and not home page

    I read that you can effect this behaviour via /includes/modules/pages/login/header.php by changing this:
    PHP Code:
            } else {
              
    zen_redirect(zen_href_link(FILENAME_DEFAULT''$request_type));
            } 
    To this:
    PHP Code:
            } else {
              
    zen_redirect(zen_href_link(FILENAME_ACCOUNT''$request_type));
            } 
    However, it's not had any effect for me. ZC 1.5.1 at www.silkblooms.co.uk

    Can anyone figure out what else I must do to redirect logins to the account page instead of the home page when they have an empty cart?

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Login Should Redirect to ACCOUNT and not home page

    There's more than one instance of that redirect, you need to change them all :)
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  3. #3
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Login Should Redirect to ACCOUNT and not home page

    Quote Originally Posted by limelites View Post
    Can anyone figure out what else I must do to redirect logins to the account page instead of the home page when they have an empty cart?
    For me, replacing the DEFAULT with ACCOUNT worked just fine, but I'm using the split login and default code. Looking at your page it's a custom code so you would have to code the redirect yourself. Look where the action LOGINPROCESS rediects to if the user name and password is correct. The code could be in the includes\moduals\YOuRTEMPLATE\create_account.php or the page header.
    Dave
    Always forward thinking... Lost my mind!

  4. #4
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Login Should Redirect to ACCOUNT and not home page

    Quote Originally Posted by twitchtoo View Post
    There's more than one instance of that redirect, you need to change them all :)
    Ahhh, that explains it. /includes/modules/create_account.php needs to be changed too. Thanks twitchtoo.

 

 

Similar Threads

  1. How to Put Login and Create Account Button on Home Page
    By RiazShahid in forum General Questions
    Replies: 4
    Last Post: 18 Dec 2015, 06:25 PM
  2. Replies: 3
    Last Post: 15 May 2014, 05:35 PM
  3. Login Page Redirect to My Account?
    By Zoethreads in forum General Questions
    Replies: 3
    Last Post: 27 May 2010, 02:28 AM
  4. how does login page decide where to redirect after create an account?
    By weber in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 May 2009, 11:59 AM
  5. How to redirect customer to their account page from login?
    By memerson in forum Basic Configuration
    Replies: 2
    Last Post: 19 Feb 2009, 09:32 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR