Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2004
    Posts
    120
    Plugin Contributions
    0

    Default redirect after login

    When i'm browsing categories and i find product i like, i want to login to check prices. But after login i get redirected to index page. Can this be done so that i get redirected to the page i was, before i was loged in?

    I think i need to change FILENAME_DEFAULT to something else in /includes/modules/pages/login/header_php.php

    zen_redirect(zen_href_link(FILENAME_DEFAULT));

    Any idea? Tnx

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: redirect after login

    actualy there might be something wrong with your sessions settngs, once logged in your suppposed to go back to the page you were browsing

  3. #3
    Join Date
    Sep 2004
    Posts
    120
    Plugin Contributions
    0

    Default Re: redirect after login

    Hmmm...where can i check this? I use version 1.2.7 with SEFU addon

  4. #4
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: redirect after login

    try turning sefu OFF for a minute and try it

  5. #5
    Join Date
    Sep 2004
    Posts
    120
    Plugin Contributions
    0

    Default Re: redirect after login

    No changes. I still get redirected to index.php?main_page=index

    Does this have to do something with store sessions option, when installing cart?

  6. #6
    Join Date
    Sep 2004
    Posts
    120
    Plugin Contributions
    0

    Default Re: redirect after login

    Sorry for bumping this, but i still can't solve this problem. Any idea?
    Tnx

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: redirect after login

    You would need to add a line to your includes/modules/pages/product_info/header_php.php:
    PHP Code:
      $_SESSION['navigation']->set_snapshot(); 
    Probably best to put it just before this line:
    PHP Code:
      require(DIR_WS_MODULES zen_get_module_directory('require_languages.php')); 
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Sep 2004
    Posts
    120
    Plugin Contributions
    0

    Default Re: redirect after login

    Thank you very much, this works great!

  9. #9
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: redirect after login

    DrByte, can we put it somewhere like so that it will take effect on all pages?
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. Redirect after login/registration
    By mixtli in forum Managing Customers and Orders
    Replies: 5
    Last Post: 13 Oct 2015, 03:49 AM
  2. v151 Redirect Issue after Login
    By yaseent in forum Bug Reports
    Replies: 5
    Last Post: 22 Aug 2014, 04:57 PM
  3. Redirect to Shopping Cart after login
    By orange_juice in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Jan 2011, 11:40 AM
  4. 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

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