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
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
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 OnlyCustomer 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!
many thanks Linda - I was not aware of that switch!!
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!
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
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:
around line 260 or so: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']);
/includes/init_includes/init_customer_autho.phpCode:'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 );
and see if that works better for you ...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
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!
Bookmarks