Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2010
    Posts
    17
    Plugin Contributions
    0

    Default question about customer authorization..

    i have it set so that if a user is not logged in, the categories do not list (did this manually as it works better for me cuz i want everything else accessable minus the store itself)... and i have it set so users need to be authorized before they are granted access.. but right now if a user registers and they are not yet green lighted they still have access to view the store section, i do not want them to be able to see the store section until they are authorized, and i do not want to use the setting in the customer section because this blocks every category minus the contacts.

    right now im doing

    <?php if ($_SESSION['customer_id']) { ?>

    then itll show the categories.. i need to know the variable for the customer authorization status.. so i can do an && and then have it check that the user is authorized.. what is this variable and what would the value be for an authorized user versus a pending authorization user?

  2. #2
    Join Date
    Mar 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: question about customer authorization..

    i think i finally came across it after a couple days of searching, let me know if this is right...
    $_SESSION['customers_authorization'] would equal 0 if they are authorized correct?

    so i would use:

    <?php if ($_SESSION['customers_authorization'] == '0' and $_SESSION['customer_id'] != '') { ?>

    right?

  3. #3
    Join Date
    Mar 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: question about customer authorization..

    yep seems to be working exactly how i want it.. here is what im using incase it helps someone else in the future:

    <?php if ($_SESSION['customers_authorization'] == '0' and $_SESSION['customer_id'] !=

    '') { ?>
    <td><a

    href="cart/index.php?main_page=products_all"><img

    src="../img/menu-catalog.jpg" width="186" height="46"></a></td>
    <?php } ?>
    <?php if ($_SESSION['customers_authorization'] != '0' or !$_SESSION['customer_id']) { ?>
    <td><img src="../img/menu-catalog.jpg" width="186" height="46"></td>
    <?php } ?>

    so basically if they are logged in and authorized itll make the link active for the catalog.. other than that it is not active. and i apply the same code to the category list on the left sidebox.

 

 

Similar Threads

  1. v139d Question about a Customer Upload Mod
    By webmiss in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 20 Jul 2012, 10:00 PM
  2. Question about creating customer portals within a store
    By deaconhoo in forum General Questions
    Replies: 2
    Last Post: 6 Sep 2011, 01:23 PM
  3. Question about Customer Login
    By emarkets in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Jan 2010, 12:40 AM
  4. Customer Authorization Status Question??
    By dcfxking in forum General Questions
    Replies: 17
    Last Post: 18 Aug 2006, 10:02 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