Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Posts
    157
    Plugin Contributions
    0

    Default how does login page decide where to redirect after create an account?

    i am going to do something on the login page.

    when you create an account from shopping cart, the create account page will redirect your page to shopping cart, how? where is those codes...

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: how does login page decide where to redirect after create an account?

    Where the customer is redirected to after creating an account depends on whether they have something in the cart or not. The relevant code is in in includes/modules/pages/create_account_success/header_php.php:
    Code:
    // redirect customer to where they came from if their cart is not empty and they didn't click on create-account specifically
    if ($_SESSION['cart']->count_contents() > 0) {
      if ($origin_href != zen_href_link(FILENAME_DEFAULT)) {
        zen_redirect($origin_href);
      }
    }
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    Nov 2008
    Location
    London
    Posts
    94
    Plugin Contributions
    0

    Default Re: how does login page decide where to redirect after create an account?

    Hello,
    Which bit of code dictates the redirect address?
    At present my create account function is redirecting customers to a page that appears to not exhist but when I type the create_account_success address directly into the browser it displays. The best I can gather is that it is redirecting to the wrong location.

    So.. maybe i know what the problem is but i do not know how to fix it.
    Any ideas?

    (ps; I do nor read php, im sure that does't help)

    Any help greatly appriciated. Beep

 

 

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. Suddenly Create Account Page re-loads after account created.
    By voluntaryist.only in forum General Questions
    Replies: 7
    Last Post: 9 Aug 2013, 07:36 AM
  3. Login Link - Can I redirect to My Account after login?
    By perkiekat in forum General Questions
    Replies: 2
    Last Post: 3 Feb 2010, 01:34 AM
  4. 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
  5. 1.3.5 System blank page after login or create account
    By ccn1 in forum General Questions
    Replies: 2
    Last Post: 31 Oct 2006, 10:09 AM

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