Zen Cart Logo
Forums / All Other Contributions/Addons / Add Customers from admin addon

Add Customers from admin addon

Views: 42,164

Results 121 to 140 of 263
02 Aug 2009, 04:55
#121
didee avatar

didee

Zen Follower

Join Date:
Jan 2009
Location:
Queensland, Australia
Posts:
115
Plugin Contributions:
0

Add Customers from admin addon

just in reply to my previous message. I have followed 'danilyn22' and installed a previous mod and it works perfect now. So not sure about the latest download. thanks again for the mod.

02 Aug 2009, 08:20
#122
didee avatar

didee

Zen Follower

Join Date:
Jan 2009
Location:
Queensland, Australia
Posts:
115
Plugin Contributions:
0

Re: Add Customers from admin addon

Another problem has reared it head. Cant find an answer to this one either. I have installed 1.05 sussessfully, but it sends an email without the bit about the incentive code etc. hat do I have to do to enable this. I have tried putting in a legitimate code, but that doesnt work. thanks. ::blush:

02 Aug 2009, 22:26
#123
didee avatar

didee

Zen Follower

Join Date:
Jan 2009
Location:
Queensland, Australia
Posts:
115
Plugin Contributions:
0

Re: Add Customers from admin addon

Didee:

Another problem has reared it head. Cant find an answer to this one either. I have installed 1.05 sussessfully, but it sends an email without the bit about the incentive code etc. what do I have to do to enable this. I have tried putting in a legitimate code, but that doesnt work. thanks. ::blush:
Can anyone help with this little problem, it is probably only a simple fix,,,,,, thanks. I had a look in the php and the wording is in there, but it doesnt show up in the actual email .

03 Aug 2009, 05:58
#124
didee avatar

didee

Zen Follower

Join Date:
Jan 2009
Location:
Queensland, Australia
Posts:
115
Plugin Contributions:
0

Re: Add Customers from admin addon

Didee:

Can anyone help with this little problem, it is probably only a simple fix,,,,,, thanks. I had a look in the php and the wording is in there, but it doesnt show up in the actual email .

:DIt was a simple fix. thanks anyways.

04 Aug 2009, 16:04
#125
christamcc avatar

christamcc

New Zenner

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

Re: Add Customers from admin addon

For version 1.06 it wasn't sending a welcome email when checked. I changed line # 420 in add_customers_backend.php in the admin folder from:

if($send_welcome == 1)

to

if($send_welcome == 'send')

And now it sends the welcome email successfully.

It did not cause the foreach error to go away though. Looking into it still. If I figure it out I will post an update.

04 Aug 2009, 16:46
#126
christamcc avatar

christamcc

New Zenner

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

Re: Add Customers from admin addon

Okay, I think I got it. In the add_customers_backend.php file in the admin folder at line #695 comment out the "$errors = false". So change this:

if (count($errors)) {
	$cInfo = new objectInfo($_POST);
	$processed = true;
} else {
	$errors = false;
}

to this:

if (count($errors)) {
	$cInfo = new objectInfo($_POST);
	$processed = true;
} else {
	//$errors = false;
}

ALSO in the add_customers.php file in the admin change line # 21 to: 'if (count($errors) < 1) {'

So From this:

if (count($errors) <= 1) {
	insert_customer();
	$feedback[] = 'Customer inserted successfully';
}

To This:

if (count($errors) < 1) {
insert_customer();
$feedback[] = 'Customer inserted successfully';
}

This will get rid of the foreach error and it will also prevent the customer from being added even when there was one error.

24 Aug 2009, 14:21
#127
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Re: Add Customers from admin addon

christamcc:

Okay, I think I got it.

Yes you did :) Thank you. I had already caught that line 21 issue, but the other one is what i was missing. Thanks again.

31 Aug 2009, 22:43
#128
rotorrian avatar

rotorrian

New Zenner

Join Date:
Jun 2009
Posts:
8
Plugin Contributions:
0

Re: Add Customers from admin addon

Hello fellow zenners :D

Is this addon complete and functioning ? My products are due for a firm ware update and it would be handy if I could add my customers from outside Zencart to manage upgrades and product updates more effectively.

Cheers

Rian Herrick
https://www.buygopro.co.nz

02 Sep 2009, 13:12
#129
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Re: Add Customers from admin addon

I am also having trouble with the CSV import. I can select the file for import, but the page refreshes without any errors. Have tried both options (part and file) for importing. I was getting the "cannot move" file error, so I changed the file location as recommended a few posts back, but still no go.

I also did the above mentioned fixes to get the single customer entry working with welcome e-mail.

Any idea? I also use easypopulate on this server without any problems like this.

Thanks

03 Sep 2009, 17:35
#130
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Re: Add Customers from admin addon

Okay... well. I made some progress... I have been able to verify that the upload file does properly upload and get copied over the the correct temp folder.

NOW the problem seems to be with the CSV file. I was able to upload the included sample file correctly. BUT!

I am on Mac, using excel for mac and openoffice.org. When I edit this file, I start getting problems with no input. Also, the script doesn't like data to be enclose by quotes (the standard for export from openoffice).

Wouldn't this script work better using fgetcsv() ???

Any suggesting on what's up with mac/csv and this script?

-Thanks!

03 Sep 2009, 19:16
#131
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Re: Add Customers from admin addon

This appears to be a dos vs unix end-of-line character issue.

If I export the CSV from openoffice, then open in text edit and remove the quotes, the file will upload and process.

Date of birth gets messed up in conversion, but that should be easily fixable.

-cj

17 Sep 2009, 19:42
#132
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Add Customers from admin addon

Ok this is a two part question:

  1. I have an additional field that I created for when customers register. Can I add that field? And if so, how do I do it?

  2. When I manually add a customer, it gives me the pretty green box that says "customer has been inserted successfully" but above that I have a red box that says "Warning: Invalid argument supplied for foreach() in /home/actforms/public_html/cart/admin/add_customers.php on line 71". I'm wondering if that has something to do with the additional field. If not, any ideas?

BTW, Thanks for the MOD, it's a big help!!

18 Sep 2009, 21:24
#133
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Add Customers from admin addon

margecc:

Ok this is a two part question:

  1. I have an additional field that I created for when customers register. Can I add that field? And if so, how do I do it?

Hello, honestly if I could get this answered, I would be so happy.

This is the thread I used to create a field if that helps:
http://www.zen-cart.com/forum/showthread.php?t=73181

Also, does anyone know how to make the states a dropdown?

18 Sep 2009, 21:32
#134
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Add Customers from admin addon

margecc:

Hello, honestly if I could get this answered, I would be so happy.

This is the thread I used to create a field if that helps:
http://www.zen-cart.com/forum/showthread.php?t=73181

Also, does anyone know how to make the states a dropdown?

Not sure about the first part.

for the second part:

admin -> configuration -> customer details -> State - Always display as pulldown? (set to true)

18 Sep 2009, 21:37
#135
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Add Customers from admin addon

I have it set to true already :(

In the add_customers_backend.php it has a list, where it changes what state or province you type into abbreviations somewhere, but I'm not sure where, cause when I look in the database, under the address_book table, it puts the full state/province under the column entry_state and leaves the entry_zone_id at 0.

Does that make sense?

21 Sep 2009, 15:57
#136
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Add Customers from admin addon

Pretty please, could someone give me a hand, or put me in the right direction.

I downloaded the most recent version in the add on section 1.06, **PHP Version: ** 5.2.10, Zen Car 1.3.7

Here is what I'm trying to do:

  1. I would really like to add some fields to the register section (I already have an extra field added for when they register, it would just be nice to to have to go into the customer after they are created to add more information).

  2. Would really like the states to be drop down, like they are when you register. Much faster when you are on the phone with a customer.

  3. If possible it would be nice if the states went to the "entry_zone_id" column. That way it keeps all my customers entered the same.

I am still getting the "line 71" error, but it doesn't seem to affect anything, so I'm not to worried about it right now. But if anyone knows of a fix for it, I would really appreciate it.

On a side note, for people trying to use the bulk uploader, rather than going through any MOD's, I just created my 3 files for the tables (customer, customers_info and address_book) and uploaded them directly my MyPHPadmin with no big deal. I did 2000 customers that way and it worked like a charm. Of course if the MOD works for you even better. :D

30 Sep 2009, 20:02
#137
tat2nu avatar

tat2nu

Zen Follower

Join Date:
Jan 2005
Posts:
178
Plugin Contributions:
0

Re: Add Customers from admin addon

When I manually add a customer, it gives me the pretty green box that says "customer has been inserted successfully" but above that I have a red box that says "Warning: Invalid argument supplied for foreach() in /home//public_html//add_customers.php on line 71".

I am having this problem too. Can somebody give us an idea of what might be wrong. I would really like to be able to use the drop down for the states when manually adding a customer from the admin side.

Thanks,
Marc

30 Sep 2009, 20:05
#138
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Re: Add Customers from admin addon

tat2nu:

I am having this problem too. Can somebody give us an idea of what might be wrong. I would really like to be able to use the drop down for the states when manually adding a customer from the admin side.

Thanks,
Marc

check post 130 for the solution:

http://www.zen-cart.com/forum/showpost.php?p=764604&postcount=130

01 Oct 2009, 01:43
#139
tat2nu avatar

tat2nu

Zen Follower

Join Date:
Jan 2005
Posts:
178
Plugin Contributions:
0

Re: Add Customers from admin addon

Thank you, I made those changes but I would still like to have the state selection be from a drop down menu to avoid misspelling.

Also is there a way to have the newsletter drop down default to the "subscribed" selection.

Also I would like the "Send this customer the welcome e-mail" box to be checked as a default.

Thanks,
Marc

05 Oct 2009, 16:03
#140
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: Add Customers from admin addon

I added this module. Seems to work fine until I tried to add products to new customer.

I added test customer via customers/add customer in admin area.
Added them fine. I was even able to send email to myself with test.

Now, how do I add products for test customer?

I have a real customer that needs invoice for payment similar to walk in. Normally, all orders are via online.

Thanks, Kim