Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Feb 2007
    Posts
    13
    Plugin Contributions
    0

    Default login.php for the store itself

    Howdy

    I've searched the forum, googled about, and searched the codebase, but haven't found an answer to this question:

    How can I make the store itself throw up a login page the way the admin area does ?

    E.g., I don't want customers to see ANYTHING unless they're logged in, just the way it works on the admin side.

    tia

    -- stan

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

    Default Re: login.php for the store itself

    admin -> configuration -> customer settings,
    must be logged in to browse
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: login.php for the store itself

    Looks like Merlin has a better solution than me!
    Last edited by kuroi; 26 Mar 2007 at 03:02 AM. Reason: Edited to remove overly complicated suggestion
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Feb 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: login.php for the store itself

    Hi Merlinpa

    Thanks, but that's not what I'm after. That setting does NOT stop an unlogged-in customer from seeing parts of the store.

    Per my original post, I want customers to see NOTHING but a login, just the way it works on the admin side of things.

    -- stan

  5. #5
    Join Date
    Feb 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: login.php for the store itself

    Hi kuroi

    Thanks for the info. That's what I'm looking for.

    Extensive indeed.

    This is an important feature for eSites that are to be restricted to a particular set of users.

    -- stan

  6. #6
    Join Date
    Feb 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: login.php for the store itself

    Hi again kuroi

    I'm looking through the admin side files to see an example of how this
    is done.

    I can't find anything.

    Can you point me to a file that does this check on the admin side of things ?

    thanks

    -- stan

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

    Default Re: login.php for the store itself

    actually you can turn OFF header, footer left and right columns
    so that all that is shown is the login page

    it does just want you want if you make sure to hit the built in switches
    Zen cart PCI compliant Hosting

  8. #8
    Join Date
    Feb 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: login.php for the store itself

    Hi Merlin

    Aha !!! Didn't see those extra switches. Thanks for your patience.

    So: here's a proposed simple step-by-step on how to do exactly what
    I want:

    [1] Go to admin/Configuration/Customer Details

    [2] Set 'Customer Shop Status - View Shop and Prices' to 1

    [3] Set 'Customer Approval Status - Authorization Pending' to 1

    [4] Set 'Customer Authorization: Hide Header' to true

    [5] Set 'Customer Authorization: Hide Column Left' to true

    [6] Set 'Customer Authorization: Hide Column Right' to true

    [7] Set 'Customer Authorization: Hide Footer' to true

    [8] Set 'Customer Authorization: Hide Prices' to true

    [9] Rewrite the store-side login along the lines of the admin-side login

    That seems manageable.

    -- stan

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

    Default Re: login.php for the store itself

    open login.php

    comment out ALL of the lines that pertain to creating an account,
    voila all done no need to rewrite anything,
    Zen cart PCI compliant Hosting

  10. #10
    Join Date
    Feb 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: login.php for the store itself

    Hi Merlin

    Your instructions are a bit sparse for a relative newbie.

    The only login.php that's not a set of language defines is on the admin
    side of things.

    On the store side of things, the file that controls logging in is
    includes/templates/template_default/templates/tpl_login_default.php

    Is that the file you had in mind ?

    That's the file I've tweaked. Unfortunately, for my purposes, it's a template
    that's used in the middle of a standard store-side page, so a bunch of header
    stuff I don't want is coming through, as seen in this screenshot:

    login_001.jpg

    Any ideas on the quickest way to short-circuit the extraneous non-login element s ?

    thanks for all your help

    -- stan

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 "/ajax.php" adds itself to the navigation history
    By lhungil in forum Bug Reports
    Replies: 14
    Last Post: 14 Jan 2015, 09:57 AM
  2. Can I link current php website with store login?
    By tianxin in forum General Questions
    Replies: 4
    Last Post: 30 May 2012, 09:00 AM
  3. Review module about the store itself
    By navido in forum General Questions
    Replies: 0
    Last Post: 2 Nov 2011, 02:57 AM
  4. Admin Login page redirects to itself - can't login
    By fxchain in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 14 Jul 2009, 07:32 AM
  5. Changed my config.php files, now can't login to store
    By tedvieira in forum General Questions
    Replies: 11
    Last Post: 27 Mar 2008, 10:25 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