Zen Cart Logo
Forums / Bug Reports / Customer authorization and Welcome email problem

Customer authorization and Welcome email problem

Locked

Views: 2,135

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
12 Sep 2007, 2:11 AM
#1
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Customer authorization and Welcome email problem

I'm creating a site for wholesale customers. I have Customer Approval Status - Authorization Pending set to 1, must be authorized to browse.

I tested this by creating my own account. I got to the page that says "customer authorization pending."

Before approving myself, I already received a Welcome email like the account was already created. How can I supress this email?

ETA: I (admin) didn't get an email that there was a customer waiting approval. Am I not doing something right? It's a fresh install of 1.3.7.1.

12 Sep 2007, 2:16 AM
#2
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Customer authorization and Welcome email problem

I think I got it. I just edit the Welcome email to say approval pending...

Now, I (wholesale customer) logged myself out, and I can't log back in! I get a looping login screen. It won't let me reset my password either. Help?

ETA: OK. Where's the "declined" option when approving customers?

12 Sep 2007, 2:51 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Customer authorization and Welcome email problem

Pop me an email with your details and I will look at this...

12 Sep 2007, 3:16 AM
#4
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Customer authorization and Welcome email problem

kobra - I was going to email you, but I think I found yet another bug...

If I close the browser, then I can log in again. So I went to go change my Log Off screen to tell customers to close the browser if they wanted to log in again.

Then I noticed that when I click Log Off, it took me back to the login screen.

I set the store back to no authorization, and everything worked fine. It's only when it's set to authorization required with no browsing what-so-ever. I'll have to mess around with the 2 options under Configuration - Customer Details. I have it working OK with the browse but no price. But I'd like to totally eliminate that option if possible...

I'm getting a bit loopy - must go to bed... LMK if you need me to do any more testing...

12 Sep 2007, 3:21 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Customer authorization and Welcome email problem

Get some rest and it will be clear tomorrow

12 Sep 2007, 5:26 PM
#6
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Customer authorization and Welcome email problem

If I have the following set, then when I click "Log off," it takes me back to the login screen and won't let me log in until I close the browser (freshing doesn't work).

Configuration -> Customer Details:
Customer Shop Status - View Shop and Prices - 1
Customer Approval Status - Authorization Pending - 1

I guess it makes sense to go back to the login screen, but maybe something isn't right when you can't log back in... I added a verbiage to close the browser, but if someone could look at the code, it would be great!

12 Sep 2007, 6:17 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer authorization and Welcome email problem

Well lookie there ... a new feature ... er ... umm ... bug ... :eek:

Moving to Bug Reports ... thanks!

29 Nov 2007, 3:03 AM
#8
compwhizmm avatar

compwhizmm

New Zenner

Join Date:
Oct 2007
Location:
USA
Posts:
31
Plugin Contributions:
0

Re: Customer authorization and Welcome email problem

Ajeh:

Well lookie there ... a new feature ... er ... umm ... bug ... :eek:

Moving to Bug Reports ... thanks!

I experienced this same bug. But, I found a fix for it.

In the Logoff header_php.php, I changed the following:

From this:

if (!empty($_SESSION['customer_id']) || !empty($_SESSION['customer_guest_id'])) {
  zen_session_destroy();
  zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang));
}

To this:

if (!empty($_SESSION['customer_id']) || !empty($_SESSION['customer_guest_id'])) {
  zen_session_destroy();
  zen_redirect(zen_href_link(FILENAME_DEFAULT));
}

I'm not sure if this is bad for the store, but it does fix the problem.