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

Add Customers from admin addon

Views: 42,164

Results 181 to 200 of 263
30 May 2010, 00:43
#181
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Add Customers from admin addon

stringplayer:

Installed this module and all is fine except the following which I need help:
If you try to amend anything in options in admin/customers it will only remember the original that was setup in your module.
So for example if there is a group discount of 10% when customer is setup and you want to change this you can't without deleting the customer first and then re-enter all his details again with the new discount.

What version of ZenCart are you running? You should be able to add a customer with this mod and then EDIT it with the existing Edit Module on the Customers screen.

30 May 2010, 00:46
#182
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Re: Add Customers from admin addon

alexsmith2709:

Hi,
Thanks for this mod, its working great.
One thing i would like to know is using the custom field i created for my registration page.
I've managed to get the field to show in the add_customer.php file but when the customer is added and i go to edit the customer in the admin panel the custom field shows up blank and the data has not been added to the database.
I followed the instructions for adding the custom field to the registration page (by exchanging customers.php for add_customers_backend.php). From what i can understand the code to add to the database is the same but there are a few differences between the files.

Any help will be much appreciated.

Thanks

You added a custom field to your registration page and also added a Database field in your customer table for this custom field?

If the field shows up, did you also add it to the customers.php file in the admin folder?

Are you having the sql query pick up your new field when it does the select?

15 Jun 2010, 03:34
#183
rclakeman avatar

rclakeman

New Zenner

Join Date:
May 2010
Posts:
2
Plugin Contributions:
0

Re: Add Customers from admin addon

margecc:

I've been trying to figure this out for a while. Right now, what you type in the input field for the state gets put in the address_book table under the column entry_state, and the zone_id get filled in as zero. Problem is that the zone_id is where Zen looks for the taxes to be calculated from, hence everyone manually entered is not being charged taxes (and apparently the correct freight). The person in post # 119 changed the country to the drop down list using Zen's codes. I've tried following what they did, changing the names of the tables and columns according, but it doesn't work (big shock for me). I know it has to do with this section in the add_customers.php file:

if (ACCOUNT_STATE == 'true') {

    echo '<tr>
        <td class="main">' . ENTRY_STATE . '</td>
        <td class="main">';

    $entry_state = zen_get_zone_name($cInfo->entry_country_id, $cInfo->entry_zone_id, $cInfo->entry_state);

    echo zen_draw_input_field('entry_state', zen_get_zone_name($cInfo->entry_country_id, $cInfo->entry_zone_id, $cInfo->entry_state)).'(Full Name)';
}

Hi everyone,
I'm new to this and have found this forum extremely helpful and educational. It almost always points me in the right direction and I'm making progress in my customization abilities daily. I am using ZC 1.3.9d and downloaded both "add customer from admin 1.07 and "encrypted master password 1.2" because I do many face to face transactions and wanted to be able to set up a customers account on the spot and use it as a substitute POS system. The issue with acfa not entering a zone in entry_zone_id in table zen_address_book makes this addon useless for states that have a sales tax and for shipping calculations. If you have encrypted master password installed you can use it as a temporary fix for now by logging into the customers account and updating the state field under change entries in my address book. If you used acfa to create the account you'll notice that the state/province field is blank. Use the dropdown to enter a state, click update, and voila.....the database gets updated with the correct zone and the full state name from acfa is removed in the database.
The state entry in acfa serves no function whatsoever but placing the full state name in the entry_state field in the database. Customer created accounts have no entry in this field. So I now understand what the problem is and have the logic figured out. I should be able to have a fix including a dropdown this week sometime. I'm not a professional but I will make sure it's functional and tested  before I post the fix. Aside from this one shortfall this addon is perfect for my needs. In the meantime install encrypted master password 1.2 and just update the state from the customers account. A pain, but it works.

rclakeman
28 Jun 2010, 05:57
#184
elkbow avatar

elkbow

Zen Follower

Join Date:
Jul 2007
Location:
Trinity Alps
Posts:
131
Plugin Contributions:
0

Re: Add Customers from admin addon

ZenCart 1.3.9c
PHP 5.2
etc.

Does anyone know if this works on PHP 5.x, and 1.3.9c or d?

Tried this and when I look at the instruction sheet in the dropdown of adding customers, it's a 404 permissions error.

Thanks

28 Jun 2010, 06:26
#185
stringplayer avatar

stringplayer

New Zenner

Join Date:
Dec 2007
Location:
Hertfordshire UK
Posts:
14
Plugin Contributions:
0

Re: Add Customers from admin addon

JTheed:

What version of ZenCart are you running? You should be able to add a customer with this mod and then EDIT it with the existing Edit Module on the Customers screen.
Hi Theed

I am running on 1.3.8a and still not able to amend any Options in Customers admin.

Any help how to cure this will be great.

Stringplayer

11 Sep 2010, 23:57
#186
gump47371 avatar

gump47371

New Zenner

Join Date:
Jul 2010
Posts:
27
Plugin Contributions:
0

Re: Add Customers from admin addon

rclakeman,

Just wondering if there was any update on this. I run a local delivery business, and was pulling my hair out because it would charge tax on taxable items for certain customers. I finally figured out it was customers we had added from acfa, and I can go into the customer's acct from admin and just change it, and it works.

Thanks for the post on the details of the problem.

13 Sep 2010, 16:14
#187
craig_md avatar

craig_md

New Zenner

Join Date:
Dec 2009
Posts:
19
Plugin Contributions:
0

Re: Add Customers from admin addon

Hello,
I am using zen cart version 1.3.9. I recently imported 6000+ customers from another type of cart and I am having about 1 out of 50 customers randomly run into the sorry we are not shipping to your region error. When we look at the address it looks fine. When we manually edit the address and save it exactly as it was from admin or from the customer end, the error does not come back up. I am shipping using UPS and USPS based on region and offer one item out of 9 with free shipping. The error occurs with or with out the free shipping item in the cart. I have searched the faq area and the forum for answers but none of the posts, for the sorry we don't ship to your region error, have been fixed by re-entering the address exactly as it was. I am assuming the import may have imported some fields from the old system as "Texas " as opposed to just "Texas" (without space). Is there an easy way to spin through the 6000 customer states to see if there is an extra space at the end of the field? maybe a script that could truncate all the spaces in that field?

Thanks
Craig

14 Sep 2010, 14:03
#188
craig_md avatar

craig_md

New Zenner

Join Date:
Dec 2009
Posts:
19
Plugin Contributions:
0

Re: Add Customers from admin addon

I have found a temporary solution by removing a UPS shipping restriction and opening and closing all the USPS shipping zone customers. Any advice would be great.
Thanks
Craig

01 Oct 2010, 00:38
#189
dallison avatar

dallison

New Zenner

Join Date:
Aug 2010
Posts:
79
Plugin Contributions:
0

Re: Add Customers from admin addon

I have tried to install this addon for 1.3.8 to my 1.3.9f cart and it appears to be working but when I click to submit either a manually entered customer or to upload the csv file it boots me out of admin so I have to login again to find that the customer has not been added. Do you know what must be done to the addon to make it work with 1.3.9f? I am not a programmer but can do find and replace type tasks and install mods with some proficiency. Any help you could provide would be greatly appreciated.
thanks,
Dewey

03 Nov 2010, 01:38
#190
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Re: Add Customers from admin addon

Umm... I've installed this and found it very good and useful, exactly what I'm looking for......

But why is there no option to enter a password for the customer? I can add customers, sure, but how will they log in without a password? I'm supposed to be creating login accounts for all my customers but I can't if I can't allocate them password as well....

03 Nov 2010, 02:40
#191
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Add Customers from admin addon

This is covered in the readme.. Passwords are generated and sent to the customer.. For security reasons you will not see the password.. again ALL covered in the readme..

Jace:

Umm... I've installed this and found it very good and useful, exactly what I'm looking for......

But why is there no option to enter a password for the customer? I can add customers, sure, but how will they log in without a password? I'm supposed to be creating login accounts for all my customers but I can't if I can't allocate them password as well....
Posted via Mobile Device

08 Nov 2010, 04:42
#192
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Re: Add Customers from admin addon

But why can't there be the option of creating passwords for the customer in this mod? At the moment I'm importing them bulk via CSV (well, trying to, as previous posters have found it's having issues accepting the Country and I'm yet to fix it), and then having to separately import a long list of SQL commands in phpMyAdmin to change the passwords to what they should be.

Would be easier if it could all be done in one, as I've had to write a small piece of software to get around it as described here.

08 Nov 2010, 05:31
#193
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Add Customers from admin addon

I've explained why this mod is written the way it currently sits.. Seems as if you are looking for a feature not offered by this add-on..

Are you instead asking one of the following questions:

  • How can I modify this add-on so I have the option to create the customers password?
  • Will anyone be updating this add-on so that you are given the option to create the customer password?
    Seems one of these two questions is really what you are seeking information on.. Yes???

ETA: his is STRAIGHT from the readme that comes with this add-on:

Version 1.01 modified from Aerodynamic_hippo's 1.0 version by Rick Riehle on 2007-09-30. In v1.01 the new customer's password is automatically generated by the system using the zen_create_random_value function, rather than being generated and assigned by the admin. This is considered better security practice, because, at least in theory, no one but the customer knows the password. Note, however, that there is a hole in this logic: whoever receives a copy of the new account email notice will know the password. ** If you would rather be able to manually specify the password, use the 1.0 version**.

Jace:

But why can't there be the option of creating passwords for the customer in this mod? At the moment I'm importing them bulk via CSV (well, trying to, as previous posters have found it's having issues accepting the Country and I'm yet to fix it), and then having to separately import a long list of SQL commands in phpMyAdmin to change the passwords to what they should be.

Would be easier if it could all be done in one, as I've had to write a small piece of software to get around it as described here.

25 Nov 2010, 16:11
#194
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Add Customers from admin addon

Hello

I am having trouble uploading addresses.csv file. I get the error "Could not move file".

I used the file provided without any new customers and that would not upload either.

I searched this thread and couldnt come up with the solution so I am asking again. I know someone else must have encountered this problem before me.

28 Nov 2010, 22:18
#195
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Add Customers from admin addon

bunyip:

It's possible that your server is configured to not allow or include the server variable $_SERVER['DOCUMENT_ROOT']

try replacing this line of code at line 26 of admin/add_customers_backend.php:

$path = $_SERVER['DOCUMENT_ROOT'] . '/' . $files['name'];

> with this:
> ```php
$path = DIR_FS_ADMIN . '/backups/' . $files['name'];

This did not work for me. I still get the same error could not move file.:lamo:

07 Dec 2010, 01:32
#196
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Add Customers from admin addon

Whats going on with this thread?

07 Dec 2010, 02:17
#197
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

You need to check your upload path for write permissions. 777 or 775 depending on your server's setup. Make sure you know where you are writing to. I believe an older version of this wrote to the admin backup directory. Later mods may have changed that, and the newest 139h pretty much demands you change the admin's path from admin...

07 Dec 2010, 12:20
#198
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Add Customers from admin addon

chadderuski:

You need to check your upload path for write permissions. 777 or 775 depending on your server's setup. Make sure you know where you are writing to. I believe an older version of this wrote to the admin backup directory. Later mods may have changed that, and the newest 139h pretty much demands you change the admin's path from admin...

I uploaded the files as they were packed. And changed the permissions to 777. That didnt help.

Could you finish the last part of your last sentence?

07 Dec 2010, 13:58
#199
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

pixelpadre:

I uploaded the files as they were packed. And changed the permissions to 777. That didnt help.

Could you finish the last part of your last sentence?

Okay, what version of Add Customers are you using?
What Version of Zencart? Have you patched to 139h? If so, did you rename your /admin folder?

It still sound like you are not writing to where you think. Are you using CPANEL to check your file permissions? Did you install zencart by uploading yourself, or with something like fantastica (sp?) thru CPANEL? You may have to SSH into your host and verify file ownership.

You may want to call your host and ask them to verify that your files have correct ownership and permissions. If you google "php error could not move file", you'll see this is most certainly a permissions error.

Also, try commenting out line 29 of add_customers_backend.php : ( add // before the line to comment out )

				//	chmod($path, 0775);

So you change to permissions "777" only to have it changed back. Depending how you have apache setup, you will not be able to upload to directories with permissions "775".

08 Dec 2010, 12:34
#200
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Add Customers from admin addon

chadderuski:

Okay, what version of Add Customers are you using?
What Version of Zencart? Have you patched to 139h? If so, did you rename your /admin folder?

I am using 1.38a and since the mod has not been verified to work with 1.39 I doubt that is the problem.

It still sound like you are not writing to where you think. Are you using CPANEL to check your file permissions? Did you install zencart by uploading yourself, or with something like fantastica (sp?) thru CPANEL? You may have to SSH into your host and verify file ownership.

I use my cpanel hspere to change the permissions to 777.

You may want to call your host and ask them to verify that your files have correct ownership and permissions. If you google "php error could not move file", you'll see this is most certainly a permissions error.

Also, try commenting out line 29 of add_customers_backend.php : ( add // before the line to comment out )

                //    chmod($path, 0775);

So you change to permissions "777" only to have it changed back. Depending how you have apache setup, you will not be able to upload to directories with permissions "775".
Not sure what you are trying to say here.

I will try commenting out the line as you recommend. I did not try using 775 setting, only 777 and 766.