Results 1 to 3 of 3
  1. #1
    Join Date
    May 2013
    Posts
    2
    Plugin Contributions
    0

    Default Modifying the login code

    So my company is setting up a Zen Cart site for the first time ever (we primarily work with C#, this project is a one-off). The customer has a really weird website set up where they can log in through another 'portal', and if they do they should get a significant discount in Zen Cart, in addition to not having to log in through the ZC page.

    None of us have much experience in PHP or web development in general, I was wondering where would I begin to check for an existing cookie (from the other page) and if it exists, have it auto log them in to ZC? I've tried Googling around for changing the login, but all I find are instructions on how to make the website say, for example, "Log In/Register" instead of Log In. But no actual back-end stuff.

    Any ideas?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Modifying the login code

    Zen Cart does not currently check for any 3rd-party "cookie" or any other authentication resource.
    But you can rewrite the authentication code to suit your needs in /includes/modules/pages/login/header_php.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.

  3. #3
    Join Date
    May 2013
    Posts
    2
    Plugin Contributions
    0

    Default Re: Modifying the login code

    Thanks, I just couldn't figure out where to add my own stuff. I was digging through all the function files in the include section.

 

 

Similar Threads

  1. Debugging code: where is the customer login code?
    By phillip.darley in forum General Questions
    Replies: 7
    Last Post: 1 Jul 2009, 12:42 PM
  2. Modifying Email Code
    By asimms1 in forum General Questions
    Replies: 1
    Last Post: 9 Jun 2009, 07:19 PM
  3. Code for the login and submit buttons on the login page
    By tkelley66 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Mar 2009, 04:58 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