Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Posts
    120
    Plugin Contributions
    0

    Default Authorization...is there a way to allow access even when Authorization = 1

    Configuration->Customer Details->Customer Approval Status - Authorization Pending = 1

    Is there an easy way to still allow access to /catalog/index.php?main_page=conditions ?

    I'm going to look in the code now because access is still allowed to 'Contact Us' and 'Privacy', so I realize there must be some code somewhere...wasn't sure if there was someone that new off-hand though.

    Normally the behavior is for most links to redirect to the 'Login' page.


    Thanks!

  2. #2
    Join Date
    Jul 2005
    Posts
    120
    Plugin Contributions
    0

    Default Re: Authorization...is there a way to allow access even when Authorization = 1

    Looks like I found it already...didn't expect to that fast. init_customer_auth.php I believe...unless someone can tell me otherwise. Thanks!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Authorization...is there a way to allow access even when Authorization = 1

    This case is what you need to change by adding the code in RED:
    Code:
      case (CUSTOMERS_APPROVAL_AUTHORIZATION == '1' and $_SESSION['customers_authorization'] != '0'):
      /**
       * customer is pending approval
       * customer must be logged in to browse
       */
      if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_LOGOFF, FILENAME_CONTACT_US, FILENAME_PRIVACY, FILENAME_CONDITIONS))) {
      if ($_GET['main_page'] != CUSTOMERS_AUTHORIZATION_FILENAME) {
        zen_redirect(zen_href_link(CUSTOMERS_AUTHORIZATION_FILENAME));
        }
      }
      break;
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Can Customer Authorization:Hide be avaliable when visiting site
    By dimsumgurl in forum General Questions
    Replies: 6
    Last Post: 16 Aug 2010, 12:13 AM
  2. Customer Authorization - Is there away to get notified
    By inklingsolutions in forum Managing Customers and Orders
    Replies: 1
    Last Post: 3 Apr 2009, 06:19 PM
  3. Instant Customer Authorization Access Approval?
    By lithos044 in forum General Questions
    Replies: 2
    Last Post: 5 Aug 2008, 06:15 PM
  4. I get a 404 page when i try to access my store even though it was there yesterday
    By lajill in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Oct 2007, 01:18 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