Zen Cart Logo
Forums / All Other Contributions/Addons / "Add Customers From Admin" mod

"Add Customers From Admin" mod

Views: 2,360

Results 1 to 15 of 15
9 Nov 2009, 2:37 PM
#1
blackwolf avatar

blackwolf

New Zenner

Join Date:
Sep 2009
Location:
Liverpool
Posts:
96
Plugin Contributions:
0

"Add Customers From Admin" mod

I have recently installed this mod and when I did a test creating a new account, I did not receive the welcome email even tho I checked the box when I was creating my account. What steps can I take to fix this?

15 Nov 2009, 2:20 AM
#2
wingsfan70 avatar

wingsfan70

New Zenner

Join Date:
Oct 2009
Location:
Southwest Florida
Posts:
19
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

hello blackwolf

I also recently installed this mod and have the same result. Did you get an answer to your question?

15 Nov 2009, 5:34 AM
#3
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

If you wanna add new customers, you should create a customer account as you would be a customer of your wesbite. If it is "too slow" for you to sign up this way, most customers probably think the same way and dont want to sign up to buy from you.

15 Nov 2009, 5:48 AM
#4
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

What version of the mod did you install?
I just installed the mod that bunyip updated (which corrected previous deficiencies) today and uploaded three separate CSV files and added customers one at a time with no errors.

Emails (with password) were sent to the customers.

Tina

15 Nov 2009, 1:46 PM
#5
wingsfan70 avatar

wingsfan70

New Zenner

Join Date:
Oct 2009
Location:
Southwest Florida
Posts:
19
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

Tina

I installed version 1.6 from bunyip also.
When I add the customer, the customer is added to the list of customers however I get the following error:

Warning: Invalid argument supplied for foreach() in D:\Hosting\4973417\html\admin\add_customers.php on line 71

I have the email archiver installed also. When a customer is created the email is never generated. It never shows up in the email datbase.

16 Nov 2009, 4:31 PM
#6
purelypoultry avatar

purelypoultry

New Zenner

Join Date:
Mar 2009
Location:
Fremont, Wisconsin, United States
Posts:
50
Plugin Contributions:
1

Re: "Add Customers From Admin" mod

I just installed this mod and had the same problem. The customers that I add with this mod are calling in and want to get a catalog of what I carry. I am using my email address. I have tried using several different options and it is still giving this error. I just installed this mod this morning and the emails never sent.

I am using 1.3.8a, Bluehost hosting.

25 Nov 2009, 9:34 PM
#7
bh_scripts avatar

bh_scripts

New Zenner

Join Date:
Nov 2005
Location:
New Zealand
Posts:
16
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

I also found that the Welcome email is not sent when adding customers one at a time i.e. not through bulk upload. I looked at the code and found the error.
Change line 320 in add_customers_backend.php from:

$send_welcome = zen_db_prepare_input($_POST['send_welcome']);

to

$send_welcome = (isset($_POST['send_welcome']) && (strtolower($_POST['send_welcome']) == 'on')) ? 1 : 0;

and change line 406 in add_customers.php from:

<input type="checkbox" id="send_welcome" value="send" name="send_welcome" />

to

<input type="checkbox" id="send_welcome" name="send_welcome" />

This fixes the email not sent problem.

26 Nov 2009, 2:28 PM
#8
firedkm avatar

firedkm

New Zenner

Join Date:
Jan 2009
Posts:
20
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

Thank you for the fix! I had the same problem and now it works

Dale

30 Nov 2009, 12:22 AM
#9
imacamper avatar

imacamper

New Zenner

Join Date:
Nov 2009
Posts:
50
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

bh_scripts:

I also found that the Welcome email is not sent when adding customers one at a time i.e. not through bulk upload. I looked at the code and found the error.
Change line 320 in add_customers_backend.php from:

$send_welcome = zen_db_prepare_input($_POST['send_welcome']);

> 
> to 
> ```php
$send_welcome = (isset($_POST['send_welcome']) && (strtolower($_POST['send_welcome']) == 'on')) ? 1 : 0;

and change line 406 in add_customers.php from:

<input type="checkbox" id="send_welcome" value="send" name="send_welcome" /> ``` > > to > ```html <input type="checkbox" id="send_welcome" name="send_welcome" /> ``` > > This fixes the email not sent problem.

I have an odd problem.

Without the above modification, the CSV import sends email but adding a customer via the web form does not.

However after doing the above, now adding a customer via the web form sends email but the CSV import does not.

What am I doing wrong?

Cheers,

Drew

30 Nov 2009, 8:48 AM
#10
bh_scripts avatar

bh_scripts

New Zenner

Join Date:
Nov 2005
Location:
New Zealand
Posts:
16
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

Had a more detailed look and found the web form and the bulk upload send two different values for "send_welcome" setting. Hence a slight change to original instructions.

Change line 320 in add_customers_backend.php to:

$send_welcome = (isset($_POST['send_welcome']) && (strtolower($_POST['send_welcome']) == 'on' || $_POST['send_welcome'] == 1)) ? 1 : 0;

Haven't tested it so please advise if works OK.

2 Dec 2009, 1:30 PM
#11
imacamper avatar

imacamper

New Zenner

Join Date:
Nov 2009
Posts:
50
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

Thanks for your reply but no, this didn't fix it. One thing I did notice is that with these fixes, uploading from CSV also does NOT subscribe the customer to the newsletter even though the newsletter value equals 1.

Without the fixes, the customer IS subscribed.

So maybe somehow with these fixes the values of newsletter and send_welcome are not parsed?

Thanks,

Drew

16 Feb 2010, 9:03 PM
#12
michellewardley avatar

michellewardley

Zen Follower

Join Date:
Nov 2004
Location:
Port Neil South Australia
Posts:
295
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

Is there a "fixed version" of this mod available for download?
and does it comfortably do bulk imports?

is there also a way to send a customized welcome email different to the original one? (probably do a promo type one)

Cheers

18 Feb 2010, 9:16 PM
#13
bh_scripts avatar

bh_scripts

New Zenner

Join Date:
Nov 2005
Location:
New Zealand
Posts:
16
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

michellewardley:

Is there a "fixed version" of this mod available for download?
and does it comfortably do bulk imports?

is there also a way to send a customized welcome email different to the original one? (probably do a promo type one)

Cheers

I bulk loaded 600 customers after making a few alterations to original mod. Will advise where can be downloaded once I have found a suitable place.
No way in existing mod to send custom welcome email apart from temporarily altering original template, do the load, and then revert it back to original.

18 Feb 2010, 11:18 PM
#14
michellewardley avatar

michellewardley

Zen Follower

Join Date:
Nov 2004
Location:
Port Neil South Australia
Posts:
295
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

cheers
thanks

21 Sep 2011, 10:19 PM
#15
clsmky avatar

clsmky

New Zenner

Join Date:
Jul 2011
Posts:
23
Plugin Contributions:
0

Re: "Add Customers From Admin" mod

bh_scripts:

I bulk loaded 600 customers after making a few alterations to original mod. Will advise where can be downloaded once I have found a suitable place.
No way in existing mod to send custom welcome email apart from temporarily altering original template, do the load, and then revert it back to original.

did anyone ever upload a new version. I have about 1900 customers to upload :blink: