Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Posts
    28
    Plugin Contributions
    0

    Default Can we alter the Login redirect?

    Hi there, if a user buys something from your website, ZenCart creates and account for them. When a user goes back to login into their account, it redirects them to a page which seems to show all categories.

    Is it possible to change it so that it goes into their account instead?

  2. #2
    Join Date
    May 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Can we alter the Login redirect?

    in the includes/modules/pages/login/header_php.php file.
    Look at:
    $_SESSION['cart']->restore_contents();
    // eof: not require part of contents merge notice

    add below:
    zen_redirect(zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));

    FILENAME_SHOPPING_CART - name for your shopping cart page.
    so you need find one for account
    FILENAME_ACCOUNT (may be)

    Be sure to make backups before changing things.

 

 

Similar Threads

  1. Can't find the php to alter checkout text
    By bhensarl in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Sep 2010, 11:18 PM
  2. How can I alter the look of the product listing page?
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 35
    Last Post: 17 Aug 2010, 02:40 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 can I alter the layout of my attribute fields?
    By marksu in forum General Questions
    Replies: 6
    Last Post: 3 Aug 2008, 02:53 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