Results 1 to 10 of 20

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default Customers authorization status

    Setting a customer's status e.g. "Pending approval - may browse no prices" doesn't seem to affect anything
    Is there another switch in admin that I need to set?


    thanks


    Derek

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

    Default Re: Customers authorization status

    Check your settings in Configuration ... Customer Details ...
    Customer Shop Status - View Shop and Prices
    Customer must be approved to shop
    0= Not required
    1= Must login to browse
    2= May browse but no prices unless logged in
    3= Showroom Only
    Customer Approval Status - Authorization Pending
    Customer must be Authorized to shop
    0= Not required
    1= Must be Authorized to Browse
    2= May browse but no prices unless Authorized
    3= Customer May Browse and May see Prices but Must be Authorized to Buy
    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!

  3. #3
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default Re: Customers authorization status

    many thanks Linda - I was not aware of that switch!!

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

    Default Re: Customers authorization status

    Not a problem ... I do like to make those things ...
    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!

  5. #5
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default Re: Customers authorization status

    I still seem to have a problem:

    My client wants to let people register a new account as normal and automatically become approved, purchase and buy goods.

    He would also like then the option of changing a customer's status to say:
    Customer May Browse and May see Prices but Must be Authorized to Buy

    where he has a dispute with the customer
    I've tried setting this option for a dummy customer but it doesn't seem to work - the add to cart button is still active
    I am a bit confused as to the combination of admin switches needed for this process


    please help

    Derek

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

    Default Re: Customers authorization status

    You need to do some customization to have a new account be set to Authorized but still be able to change that after the fact and be able to change it while a customer is logged in so that the next click will reflect the change ...

    Edit the file:
    /includes/modules/create_account.php

    and add the code in RED around line 69:
    Code:
      $fax = zen_db_prepare_input($_POST['fax']);
    // bof: override CUSTOMERS_APPROVAL_AUTHORIZATION and set to 0 for approved
    //  $customers_authorization = CUSTOMERS_APPROVAL_AUTHORIZATION;
      $customers_authorization = 0;
    // eof: override CUSTOMERS_APPROVAL_AUTHORIZATION and set to 0 for approved
      $customers_referral = zen_db_prepare_input($_POST['customers_referral']);
    around line 260 or so:
    Code:
                                'customers_default_address_id' => 0,
                                'customers_password' => zen_encrypt_password($password),
    // bof: override CUSTOMERS_APPROVAL_AUTHORIZATION and set to 0 for approved
    //                            'customers_authorization' => (int)CUSTOMERS_APPROVAL_AUTHORIZATION
                                'customers_authorization' => (int)$customers_authorization
    // eof: override CUSTOMERS_APPROVAL_AUTHORIZATION and set to 0 for approved
        );
    /includes/init_includes/init_customer_autho.php
    Code:
    /**
     * recheck customer status for authorization
     */
    // bof: override CUSTOMERS_APPROVAL_AUTHORIZATION check approval each click
    //if (CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && ($_SESSION['customer_id'] != '' and $_SESSION['customers_authorization'] != '0')) {
    if ($_SESSION['customer_id'] != '') {
    // eof: override CUSTOMERS_APPROVAL_AUTHORIZATION check approval each click
      $check_customer_query = "select customers_id, customers_authorization
    and see if that works better for you ...
    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. v139h Customers Authorization Status
    By skipwater in forum General Questions
    Replies: 2
    Last Post: 10 Nov 2012, 03:52 AM
  2. eMail notification for Customers Authorization Status = Pending
    By Austria_Des in forum Managing Customers and Orders
    Replies: 4
    Last Post: 8 Mar 2009, 03:49 PM
  3. Customers Authorization Status
    By lps_01 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 28 Dec 2008, 01:25 PM
  4. Customer Authorization Status Question??
    By dcfxking in forum General Questions
    Replies: 17
    Last Post: 18 Aug 2006, 10:02 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