Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Customer still able to buy

    Hi,

    I set a customer as "Pending Approval - May browse with prices but may not buy"

    This did not work as the customer was able to log in and purchase products.

    Is this a bug or is there a setting I am missing or what?

    Thanks

    Rick

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Customer still able to buy

    The "pending" status is only enforced if you have site-wide requirement for authorization on all users.

    Admin->Configuration->Customer Details->Customer Approval Status - Authorization Pending

    It seems like you want option 3 instead of the default 0:
    Customer Approval Status - Authorization Pending
    Customer must be Authorized to shop
    0= Not required (default)
    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
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Customer still able to buy

    I do not want to have to authorize every new customer as we receive 50-100 per day.

    Is there anyway to disallow a customer from purchasing products short of deleting their account?

    Thanks

    Rick

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Customer still able to buy

    The simplest way to do that as of v1.3.7 is to set the switch to 3 as shown above, and then make this small coding change:

    /includes/modules/create_account.php
    around line 256:
    Code:
                                'customers_authorization' => (int)CUSTOMERS_APPROVAL_AUTHORIZATION
    change to:
    Code:
                                'customers_authorization' => 0
    and save as an override to /includes/modules/YOURTEMPLATENAME/create_account.php

    Now new accounts will be auto-authorized, and customers whom you've manually de-authorized will be prevented from completing purchases.


    v1.3.8, when released, will have more flexibility built-in, but the above will work for now.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Customer still able to buy

    Thanks!!

 

 

Similar Threads

  1. v151 How Was A Customer Able To Buy Without Registering?
    By Phil Soth in forum Managing Customers and Orders
    Replies: 5
    Last Post: 24 Aug 2014, 12:45 PM
  2. Extra "Buy Now" buttons for Buy 1, Buy 2, Buy 3, Buy 4 etc...
    By AndyVI in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Mar 2011, 06:15 PM
  3. Still able to write to configure file!!!!!!
    By bottleburner in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Apr 2007, 12:15 PM
  4. Not enough stock but still able to check out?
    By weflorencekoh in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 20 Mar 2007, 07:57 PM
  5. Was able to set up for seperate shipping rates but I still need help
    By Music4theheart in forum Addon Shipping Modules
    Replies: 6
    Last Post: 1 Jan 2007, 09:45 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