Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2007
    Posts
    29
    Plugin Contributions
    0

    Default Split Log On And Customer Approval Status Problem

    I'm using the Split Panel Login Contribution but I've found that if I set the Customer Approval Status under Configuration > Customer Details to 1 then if a user clicks on the forgot your password link nothing happens - the user can't get to the page where they can fill in their email address to request a new password.

    What I want to do is use Zen Cart to Create a club and I want users to login before being able to see any of the pages. I haven't tested the default configuration to see if the problem exists without the Split Login Contribution. I'm hoping someone will have an answer to solve this problem as the original login in page is too much.

    Thanks,

    AQ

  2. #2
    Join Date
    Nov 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: Split Log On And Customer Approval Status Problem

    I seem to have solved this difficulty by changing the settings.

    I've now got a front page with both the new products information and the categories turned off and Under Configeration > Customer Details I have chosen:

    Custom Shop Status - View Shops and Prices 1
    Customer Approval Status - Authorization Pending 0

    No a user needs to login to see more of the site but if the user has forgotten their password they are still able to follow the Forogt Your Password Link.

    AQ

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Split Log On And Customer Approval Status Problem

    OKAY, so I'm responding to this many moons later.

    If you are using 1.3.7 (or earlier), try this:

    in the init_customer_auth.php file,

    Update line 104 by adding , FILENAME_PASSWORD_FORGOTTEN

    Example:

    line 99-111 now reads as follows:

    PHP Code:
    switch (true) {
    case (
    CUSTOMERS_APPROVAL_AUTHORIZATION == '1' and $_SESSION['customer_id'] == ''):
    /**
    * customer must be logged in to browse
    */
    if (!in_array($_GET['main_page'], array(FILENAME_LOGINFILENAME_CREATE_ACCOUNTFILENAME_PASSWORD_FORGOTTEN))) {
    if (!isset(
    $_GET['set_session_login'])) {
    $_GET['set_session_login'] = 'true';
    $_SESSION['navigation']->set_snapshot();
    }
    zen_redirect(zen_href_link(FILENAME_LOGIN'''SSL'));
    }
    break; 
    reason I'm answering this thread, is because a new client is using 1.3.7 and I had this problem. I believe it does not exist on 1.3.8.

    My post may be of use to someone....

    [EDIT]
    PS: you can also put in Contact Us...

    PHP Code:
    if (!in_array($_GET['main_page'], array(FILENAME_LOGINFILENAME_CREATE_ACCOUNTFILENAME_PASSWORD_FORGOTTENFILENAME_CONTACT_US))) { 
    20 years a Zencart User

  4. #4
    Join Date
    Aug 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Split Log On And Customer Approval Status Problem

    Thank you, this is EXACTLY what I needed! I love the ZC forum! :)

    Combining
    Customer Shop Status > View Shop and Price and
    Customer Approval Status - Authorization Pending > set to 1

    allows me to block deep links or direct links to categories and products on my web site without customer logon. Yay!

    Another question: is there a way I can add any of the EZ pages to the list of files in the array specified? I have a few other pages that I would like the user to be able to see.

    thanks!

    -c

  5. #5
    Join Date
    Aug 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Split Log On And Customer Approval Status Problem

    Quote Originally Posted by cranbo View Post
    Another question: is there a way I can add any of the EZ pages to the list of files in the array specified? I have a few other pages that I would like the user to be able to see
    I figured this out! Users can see EZ pages when Authorization Pending is set to 1 IF you change the code to:

    PHP Code:
    if (!in_array($_GET['main_page'], array(FILENAME_LOGINFILENAME_CREATE_ACCOUNTFILENAME_PASSWORD_FORGOTTENFILENAME_CONTACT_US'page'))) { 
    The string 'page' identifies all EZ pages.

    Thx again Schoolboy for leading me down the right track!



    --c

  6. #6
    Join Date
    Dec 2009
    Location
    Canada
    Posts
    160
    Plugin Contributions
    0

    Default Re: Split Log On And Customer Approval Status Problem

    hey! this was exactly what I was looking for!

    THis is great :) Thanks!!

    But what would the filename for the homepage be? I tried FILENAME_INDEX.. and that did not work...

 

 

Similar Threads

  1. Replies: 0
    Last Post: 28 Aug 2010, 07:48 AM
  2. Customer Approval Status
    By bfmarini in forum Managing Customers and Orders
    Replies: 6
    Last Post: 26 Nov 2008, 08:28 PM

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