Thread: Log out button

Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Location
    BA
    Posts
    3
    Plugin Contributions
    0

    Default Log out button

    Hi there, after searching widely, I seem to be unable to find an answer. I need to insert a log out button/link. I don't care where, I'm flexible.
    Could somebody provide the URL (path) for the log out page, if there is one in the zencart structure?
    What I am actually looking for is to put some kind of link (button, ez page, anything) so that a customer can log out once he or she decides to exit the page (for instance after using a public computer)
    So, what might help:
    * URL log oult page
    * code to add to footer. Seen it somewhere but I am unable to find footer.php. Actually I found a tpl-index.php, but I am unsure whether to attempt to edit it, and if this is the file to change
    * Open to other alternatives, please advice.
    If you could just provide an example of a site with log out button, I might get around.

    Thanks a lot.
    Andrea Picaso

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Log out button

    A default clean install includes a logoff link as part of the standard template, directly in the header of the site. It changes between log in and log out depending whether you're logged in or not.

    So, you have an example already in your hands.

    If you've changed to use another template, switch back to the Classic template supplied with the software, and you'll be able to see the code as originally intended.
    .

    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.

  3. #3
    Join Date
    Aug 2010
    Location
    BA
    Posts
    3
    Plugin Contributions
    0

    Default Re: Log out button

    Yes, thanks for the reply. Unfortunately I made some changes to the header and now I am unable to diplay those links.
    How about a URL? An online demo says shopurl/logoff.html. If I try to open that page in my site I get a 404 error.
    How can I reistall the original header without re installing the whole shop. Thanks
    Andrea Picaso

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Log out button

    It's http://www.yoursite.com/index.php?main_page=logoff

    We'd need a link to the site to see how to reaquire the navMain section.

  5. #5
    Join Date
    Aug 2010
    Location
    BA
    Posts
    3
    Plugin Contributions
    0

    Default Re: Log out button

    Thanks, that was exactly the answer I was praying for
    thanks a lot
    Andrea Picaso

 

 

Similar Threads

  1. HOME & LOG OUT button in homepage
    By missymissy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Apr 2014, 02:58 PM
  2. Dynamic Log In / Out button required
    By shippers in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Jul 2011, 10:43 PM
  3. Log Out button when not logged in
    By uniqueliving in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Feb 2010, 11:21 AM
  4. After log out can't log back in unless......
    By oldpaint in forum General Questions
    Replies: 13
    Last Post: 17 Mar 2007, 05:51 AM
  5. log in/log out 404 -NOT double directory issue
    By felixthehat in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 30 Sep 2006, 02:35 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