Zen Cart Logo
Forums / Managing Customers and Orders / Incorrect authorization email sent

Incorrect authorization email sent

Views: 641

Results 1 to 5 of 5
16 Jun 2015, 21:51
#1
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Incorrect authorization email sent

I set the authorization option to not allow customers to browse until they are authorized. The customer is not allowed to browse until they are authorized. However as soon as the customer registers they get an email stating that they are authorized before they are actually authorized.

I want ant initial email sent stating that they are being reviewed and an email sent after they are actually authorized.

16 Jun 2015, 22:03
#2
kobra avatar

kobra

Black Belt

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

Re: Incorrect authorization email sent

Use the developers tool kit in your admin/tools

Enter part of the text in the email in question
After you know where/what file it is in you can change it

https://www.zen-cart.com/content.php?81-how-do-i-use-the-developers-toolkit

17 Jun 2015, 13:58
#3
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Incorrect authorization email sent

OK, now how can a email automatically be sent when it is approved.

17 Jun 2015, 14:56
#4
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Incorrect authorization email sent

This is a new install before any changes have been made to any code.

Customer Approval Status: Authorization Pending is set to 1

When starting site I get the Welcome, Please Sign In page

After submitting customer information I get the Customer Authorization Pending page.

However the customer is sent the customer_account email message before it is approved. This email should not be send until the customer has been approved.

Changing the text of the message just is not a realistic solution.

The message needs to be surpressed until the customer is approved.

Does any one have any ideas how this could be solved?

17 Jun 2015, 20:34
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Incorrect authorization email sent

The built-in "create_account" processing does not take into account (as you've indicated, jodean) whether the just-created account requires authorization or not. You'll need to modify the file /includes/modules/YOUR_TEMPLATE/create_account.php to make your customizations.