Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    169
    Plugin Contributions
    2

    bug Redirect inconsistency

    Hi,

    I noticed that if a user is logged into the zen-cart store, and somehow they end up visiting the Login page, it redirects them automatically to the My Account page.

    This however does not happen when the user visits the Create Account page, shouldn't this code also exist in the create_account/header_php.php file:

    // if the customer is logged in already, redirect them to the My account page
    if (isset($_SESSION['customer_id']) and $_SESSION['customer_id'] != '') {
    zen_redirect(zen_href_link(FILENAME_ACCOUNT, '', 'SSL'));
    }

    ?

    I think it would make sense.

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Redirect inconsistency

    Quote Originally Posted by yaseent View Post

    I noticed that if a user is logged into the zen-cart store, and somehow they end up visiting the Login page, it redirects them automatically to the My Account page..
    Interesting observation.

    Quote Originally Posted by yaseent View Post
    This however does not happen when the user visits the Create Account page, shouldn't this code also exist in the create_account/header_php.php file:

    I think it would make sense
    There may be a reason why the code isn't included - but it could be just a matter of not being considered necessary - or perhaps none of the dev team have come followed this sequence of events - It could also be possible that this behaviour for the login page isn't even supposed to be doing that - and should probably be taking them to the page they were on before the login.

    I've not tried testing this with the create account page - So out of curiousity, what page does that take you too?

    Cheers
    RodG

  3. #3
    Join Date
    Mar 2009
    Posts
    169
    Plugin Contributions
    2

    Default Re: Redirect inconsistency

    I've tested this out on other online stores. When you visit a login page or signup page while being logged in, they both always redirect you to the My Account page, so this behavior would be what I'd call, an industry standard, and quite a decent solution.

    As for your question, when visiting the create account page on zencart while being logged in as a user, it just shows you the create account page itself, including the sign-up form and all.

 

 

Similar Threads

  1. Image inconsistency
    By mrcastle in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 4 Mar 2010, 11:46 AM
  2. RowEven / RowOdd inconsistency
    By dysfunctional in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 Sep 2009, 07:42 PM
  3. Got an odd little inconsistency
    By r1formetoo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Mar 2009, 01:17 AM
  4. Inconsistency in category font size
    By cgoldberg in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Oct 2007, 10:15 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