Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default Help with Log In!

    Here's the deal. I've searched the Zen Cart forums and can't find an answer anywhere.

    When a customer clicks "Log In" and enters their credentials, they are logged in but are immediately redirected to the homepage. I would prefer that when a customer logs in, they are taken to their account page where they can see orders that they've placed and can check on their order status.

    Many customers log in every time they visit the site and complain that they can't figure out how they can view order status or update their information (they assume that just by logging in, they should be directed to their personal information) so they call me and have me guide them through it. This is taking up a lot of my time throughout the day and I thought it would be so much simpler if I could just specify in the script somewhere that the default page after login is the "My Account" page.

    http://store.gkmachine.com

    Any help is much appreciated.

    Thanks Zenners!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help with Log In!

    You can try this with copies in your overrides folders and if wrong just delete and the core files will be used and you can start with fresh copies.
    In a copy of includes/modules/pages/login/ header_php.php find
    Code:
          if (sizeof($_SESSION['navigation']->snapshot) > 0) {
            //    $back = sizeof($_SESSION['navigation']->path)-2;
            //if (isset($_SESSION['navigation']->path[$back]['page'])) {
            //    if (sizeof($_SESSION['navigation']->path)-2 > 0) {
            $origin_href = zen_href_link($_SESSION['navigation']->snapshot['page'], zen_array_to_string($_SESSION['navigation']->snapshot['get'], array(zen_session_name())), $_SESSION['navigation']->snapshot['mode']);
            //            $origin_href = zen_back_link_only(true);
            $_SESSION['navigation']->clear_snapshot();
            zen_redirect($origin_href);
    Replace the red code with
    Code:
        zen_redirect(zen_href_link(FILENAME_ACCOUNT, '', 'SSL'));
    I think that this will net what you want but I have not tested this
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Help with Log In!

    In the bottom of every page there is "My Account" this can also be put on the top (maybe the sides too) it is controled at admin->tools->easy pages

    have a look at my site

    http://www.canadascrubs.com

  4. #4
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Help with Log In!

    Thanks for all of the tips everyone! kobra, you are a life saver. I replaced the file with your corrections and it worked flawlessly. I can't thank you enough. Oh the phone calls that this will save me

 

 

Similar Threads

  1. Help with Error Log
    By Mary2020 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Mar 2010, 05:43 PM
  2. IE7 Woes Please Help with Log in Problems
    By thevintagesound in forum General Questions
    Replies: 8
    Last Post: 6 Nov 2007, 04:49 PM
  3. Help with error message that appears when i click Log in
    By IronMan101 in forum General Questions
    Replies: 2
    Last Post: 3 Aug 2007, 10:13 AM
  4. Need Help With Log In scipt
    By Dreamland_Production in forum General Questions
    Replies: 3
    Last Post: 13 Jun 2006, 05:44 AM

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