If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Admin New Customer [Support Thread]

Admin New Customer [Support Thread]

Started by lhungil on 28 Aug 2012, 8:24 PM · Views: 13,969

Results 1 to 20 of 35
28 Aug 2012, 8:24 PM
#1
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Admin New Customer [Support Thread]

Admin New Customer 1.0RC1 for Zen Cart 1.5.0

Plugin / Add-On Details
This plugin adds the ability for administrative users to add new customers to Zen Cart from the administrative interface. The interface blends into the existing customer management page with the addition of a single "insert" button.

  • Can add a new customer with shipping address
  • Can optionally add a billing address for the new customer
  • Client-Side Javascript and Server-Side PHP customer validation
  • Verifies new customer information against configured Zen Cart restrictions
  • Includes support for address dropdowns
  • Sends an admin alert email when a new customer is added
  • Can restrict via Admin Profiles

Status
I've attached Release Candidate 1 to this thread. Looking for people to test current version.

Disclaimer
As with all Zen Cart Plugins / Add-Ons you should first TEST the changes on a non-production site. It is recommended to backup your entire Zen Cart installation and database prior to installing.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

11 Sep 2012, 3:32 PM
#2
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin New Customer [Support Thread]

Version 1.0 of "Admin New Customer" is now available in the plugins section: http://www.zen-cart.com/downloads.php?do=file&id=1501.

The only change from RC1 were some slight improvements in the installation scripts.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

1 Oct 2012, 3:06 PM
#3
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin New Customer [Support Thread]

Release Notes

  • Updated installation scripts to provide additional feedback
  • Updated to use new function zen_create_PADSS_password in 1.5.1
  • Added patched Zen Cart 1.5.1 password_func.php with fixes

This version includes a patch to the Zen Cart 1.5.1 password_func.php. This patch fixes an issue when your store is not installed on the website root. See password_forgotten-generates-log-file for more details.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

9 Oct 2012, 8:29 PM
#4
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin New Customer [Support Thread]

Affected Environments
Those using country / state drop down menus. Currently the state field will not be added to the addresses in the database.

Patch Details
Edit "new_customer.php" starting on line 84 change:

	$cInfo->entry_lastname = $cInfo->customers_lastname;
}

to:

	$cInfo->entry_lastname = $cInfo->customers_lastname;

	// Handle state dropdowns if needed
	if(zen_not_null($_POST['entry_zone_id']) && $_POST['entry_zone_id'] != 0) {
		$cInfo->entry_state = zen_get_zone_name($_POST['entry_country_id'], $_POST['entry_zone_id'], 0);
	}
	if(zen_not_null($_POST['billing_zone_id']) && $_POST['billing_zone_id'] != 0) {
		$cInfo->billing_state = zen_get_zone_name($_POST['billing_country_id'], $_POST['billing_zone_id'], 0);
	}
}

Notes
This patch will be added to the next release.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

28 Nov 2012, 3:57 AM
#5
jpietrowiak avatar

jpietrowiak

Zen Follower

Join Date:
May 2009
Posts:
122
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

Hi lhungil,
Thanks for writing the Mod! I like being able to add the two addresses at once. But I also found one additional bug that seems to be present with it. With the last few lines changed in this thread that works, however one thing that seems to happen is when a customer goes to edit any address made initially with this mod it always causes you to have to reenter the State again. It looks like the mod does not write to the entry Zone ID field only entry_state field until you update it then the fields switch. Wish I could be of more help but I do not understand PHP code to figure out what is going on.

Also one other thing I am not sure is possible but would it be possible to also have an additional Company field for each address?

Thanks
Jamey

29 Nov 2012, 3:30 PM
#6
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin New Customer [Support Thread]

jpietrowiak:

... It looks like the mod does not write to the entry Zone ID field only entry_state field until you update it then the fields switch. Wish I could be of more help but I do not understand PHP code to figure out what is going on...
I can confirm this - the problem is some misspellings in one of the files. There is a BETA release of version 1.2 available which corrects all known bugs since version 1.1 and improved installation, removal, and a couple other enhancements.

BETA Testers are welcome. To join the BETA test, simply send me a private message requesting to be involved and I'll invite you to the BETA.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

4 May 2013, 5:47 PM
#7
mcelmac avatar

mcelmac

New Zenner

Join Date:
Nov 2011
Posts:
7
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

Hello

I have zen cart 1.5.1. I had trouble installing your module. I uploaded the files and now I get a blank page when I try to login into the admin. Can you please provide some help?

7 May 2013, 5:58 AM
#8
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin New Customer [Support Thread]

I am getting a blank page

Follow the instructions in that article and post your debug files if any.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

15 Jul 2013, 2:49 PM
#9
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin New Customer [Support Thread]

A new version of Admin New Customer is now available from the Zen Cart plugin repository. This version features a new install / upgrade / removal process, a more detailed readme, and will no longer load duplicate zen cart functions.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

27 Aug 2013, 9:31 AM
#10
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

edited
now working nv

i may not know how yet, but i soon will....i hope :)

11 Sep 2013, 9:45 PM
#11
christamcc avatar

christamcc

New Zenner

Join Date:
May 2008
Posts:
21
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

FYI - The birth date was always adding as 2036-11-30 00:00:00 (showing at 11/20/2036). To remedy this, around line 311 where you assign the dob to the query I change this:
'customers_dob' => $cInfo->customers_dob,
to
'customers_dob' => zen_date_raw($cInfo->customers_dob),
and that seemed to fix it.

3 Oct 2013, 10:03 AM
#12
gsmsalers avatar

gsmsalers

New Zenner

Join Date:
Feb 2009
Posts:
71
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

How can I setup password for new customer created with thismode?

3 Oct 2013, 6:49 PM
#13
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin New Customer [Support Thread]

gsmsalers:

How can I setup password for new customer created with thismode?
One cannot. Instead one uses Zen Cart's "password forgotten" link (you can enter the customer's email address for them). This will send the customer a "temporary" password to their email account and when they sign into the account Zen Cart will let them choose a new password.

This was done on purpose to avoid someone other than the customer knowing the customer's password. As only the customer knows their password, this avoids any potential issue(s) which may arise.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

29 Jan 2014, 3:37 AM
#14
jpietrowiak avatar

jpietrowiak

Zen Follower

Join Date:
May 2009
Posts:
122
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

I have a problem that seems to be present with the mod. When I enter the customer billing and shipping address. Both addresses go into the database however the Company name that is entered on top for the shipping does not go into the billing address company field. Can this be changed so a company name also goes into the billing address. Or even add another company name field for the billing address?

29 Jan 2014, 4:17 AM
#15
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin New Customer [Support Thread]

Yes and yes.

To simply add the company name to both address entries change "/admin/new_customer.php" around line 354 from:

					'entry_firstname' => $cInfo->billing_firstname,
					'entry_lastname' => $cInfo->billing_lastname,
					'entry_street_address' => $cInfo->billing_street_address,

to:

					'entry_firstname' => $cInfo->billing_firstname,
					'entry_lastname' => $cInfo->billing_lastname,
					'entry_company' => $cInfo->entry_company,
					'entry_street_address' => $cInfo->billing_street_address,

Adding a second field to add a different company name for the billing address is a little more work, but could be done as well.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

29 Jan 2014, 4:39 AM
#16
jpietrowiak avatar

jpietrowiak

Zen Follower

Join Date:
May 2009
Posts:
122
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

Thanks Ihungil,
Thank you for the very fast response!! I will give that a shot, that will definitly eliminate a lot of redundant address company name editing on our end. Thank you! If I could throw the extra field option in a feature request that would be great which we could use for companies that wish to do blind dropships from a zencart store or have seperate supply company or branch that does all there ordering for them. That would be handy to eliminate going in and changing it before we do the checkout each time for them. Not a big deal but thought I would throw that out there.

8 Jun 2014, 4:49 PM
#17
milagromac avatar

milagromac

New Zenner

Join Date:
Jul 2012
Posts:
10
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

Will this version work with zencart 1.3.9.

26 Oct 2014, 6:01 PM
#18
n3qnj avatar

n3qnj

New Zenner

Join Date:
Oct 2014
Location:
Delaware
Posts:
2
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

Hi, everyone. I'm a brand noob user of Zen Cart. I'm trying to see if this software can be a solution for a customer of mine. I think it can with this plug in and a couple of others.

I have Zen Cart 1.5.3 installed. This plugin looks like it will do what I need to do, but it doesn't mention 1.5.3. It stops at 1.5.1. As I said I'm not too familiar with Zen Cart so it could be that 1.5.1 and 1.5.3 and practically identical except for small changes, but I don't know for sure.

Can anyone tell me if this plug in is compatible with ZC 1.5.3? If so are there any mods that I need to worry about?

Thanks so much.

Mark

6 Nov 2014, 5:21 PM
#19
n3qnj avatar

n3qnj

New Zenner

Join Date:
Oct 2014
Location:
Delaware
Posts:
2
Plugin Contributions:
0

Re: Admin New Customer [Support Thread]

Wow, no one. Ok. Moving on to find something else.

6 Nov 2014, 6:38 PM
#20
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin New Customer [Support Thread]

As far as I know it "should" work (I've only tested up to Zen Cart 1.5.2 RC2). Best way to find out is try on a test site (and report back).

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker