-
Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
This is the support thread for the Add Customers from Admin v2.0 plugin, created for v1.5.0 and later and is based on v1.08 of the plugin created for v1.3.x (http://www.zen-cart.com/downloads.php?do=file&id=454).
The plugin has not yet been submitted to the Plugins area for distribution as I am still "gathering" requirements. Here is my initial list:
- Moved all language-specific text to the language file. Note: Additional defines appear as English within the Czech language files.
- Added auto-install script for v1.5.0+ admin
- If the currently-selected Country has zones, a drop-down menu of associated zones is presented; otherwise, the admin user must enter a "State" value.
- Updated the CSV help text to be more 'robust'
- Added basic validation for world telephone numbers
- Added preg_match validation for US, CA and GB postcodes
- User-selectable formatting for the Date of Birth fields
- BUGFIX: Missing check for required Company field
- BUGFIX: Incorrect check for minimum first-name length
- BUGFIX: Unspecified (i.e. empty) DOB accepted when the DOB is required
- BUGFIX: Non-zero "New Signup Gift Voucher Amount" resulted in a white-screen
- BUGFIX: Address records for countries that have zones were incorrectly created
I'm investigating the request to add a "Resend Welcome Message", but require guidance as to how current users envision this feature to work.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
This updated version is now available within the Plugins area: http://www.zen-cart.com/downloads.php?do=file&id=1477.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
lat9
Rockin'!!!!!:clap:
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
lat9
Very Cool!
Quote:
Originally Posted by
lat9
I'm investigating the request to add a "Resend Welcome Message", but require guidance as to how current users envision this feature to work.
If I was coding this, I would start with a check to see if the customer has logged into the store before. I personally think it would be best to NOT show any "Resend Welcome Message" if the customer has already visited the site and logged in.
If the customer has not logged into the site, I see two possible ways to let an admin "Resend Welcome Message". Both are from the customer's Admin Page.
- A button inside the box to the right of a selected customer.
- A image link in the "actions" column next to the customer name (My preference).
You can then either make a new email template combining the "Welcome Email" and "Password Reset" email... or just mimic the body of these and use the generic email template. You will probably want to update the customer fields similar to how the password reset link and template work - so when the customer logs in the first time they are required to change their password.
-
1 Attachment(s)
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
@lhungril: Thanks for the input. I especially like the "don't resend the welcome email if the customer's already logged in" ... that's intuitive!
Regarding the placement of the "Resend Email" function, I've currently got that imbedded as a "sub-task" of the Add Customers tool, with an option to reset their password. Let me know if this works for you. There's a screenshot that's part of the plugin's zip-file (I would include it here, but I think it will wind up too small to see).
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
:bangin: Automatic Image optimizers are annoying, no?
I'd say place the feature where ever you feel current users will expect to find the feature :)
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Since this plugin has no core-file overwrites and includes no calls to either htmlentities or htmlspecialchars, it's Zen Cart v1.5.1-ready!
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Well, I spoke too soon ... lhungil pointed out the new zen_create_PADSS_password function for v1.5.1 and, implementing that, I ran across a couple of bug fixes too:
* Updated for v1.5.1 to use zen_create_PADSS_password (if present) to create the added customer's password. If the function is not present, continues to use zen_create_random_value.
* BUGFIX: Admin copy of email contained EMAIL_TEXT instead of the text.
* BUGFIX: If the Postcode mininum value was set to 0 and the value was not supplied, the insert failed due to invalid postcode format.
* BUGFIX: If a customer has already logged into the store, don't include them in the list to "Resend Welcome Email". Thanks to lhungil for pointing this out, too!
v2.0.1 has been submitted to the Plugins area. The only file changed in this version is /YOUR_ADMIN/add_customers_backend.php.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
lat9
Well, I spoke too soon ... lhungil pointed out the new zen_create_PADSS_password function for v1.5.1 and, implementing that, I ran across a couple of bug fixes too:
* Updated for v1.5.1 to use zen_create_PADSS_password (if present) to create the added customer's password. If the function is not present, continues to use zen_create_random_value.
* BUGFIX: Admin copy of email contained EMAIL_TEXT instead of the text.
* BUGFIX: If the Postcode mininum value was set to 0 and the value was not supplied, the insert failed due to invalid postcode format.
* BUGFIX: If a customer has already logged into the store, don't include them in the list to "Resend Welcome Email". Thanks to lhungil for pointing this out, too!
v2.0.1 has been submitted to the Plugins area. The only file changed in this version is /YOUR_ADMIN/add_customers_backend.php.
You and lhungil rock!!!:clap:
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
v2.0.1 is now available from the Plugins area.
Note: Post #3 in this thread points to a necessary v1.5.1 core-file BUGFIX if your cart is not installed in a file-system root.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I've submitted v2.0.2 to the Plugins area; it should be available shortly. The only change is to /YOUR_ADMIN/includes/extra_datafiles/add_customers_filenames.php:
Code:
define('FILENAME_ADD_CUSTOMERS', 'add_customers'); /*v2.0.2c: lat9*/
The previous version included the '.php' at the end of the filename, which would result in an access-denied error if anyone other than a superuser admin attempted to access the tool.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Add Customer does not display in admin/customer. The install was straight forward and I double checked. I am running 1.5 I could use some clues on this.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Did you rename the YOUR_ADMIN folder to match your renamed admin folder? If you FTP'd the files while you were signed into your admin, did you refresh the screen to allow the "Add Customers" item to be added to the Customers menu?
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I add files one at a time so that Isn't an issue. Yes refreshed.
Quote:
Originally Posted by
lat9
Did you rename the YOUR_ADMIN folder to match your renamed admin folder? If you FTP'd the files while you were signed into your admin, did you refresh the screen to allow the "Add Customers" item to be added to the Customers menu?
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
The following files are required to get the Add Customers item to display on the Customers tab:
/YOUR_ADMIN/add_customers.php
/YOUR_ADMIN/includes/extra_datafiles/add_customers_filenames.php
/YOUR_ADMIN/includes/functions/extra_functions/init_add_customers.php
/YOUR_ADMIN/includes/languages/english/extra_definitions/add_customers_name.php
Don't get me wrong, the other files are necessary to allow the plugin to operate properly without blank-pages and the like ... but the files listed above are the minimum set required to get the plugin to display on the dropdown menu. You might also check to see that you don't have any debug*.log files in your /logs directory.
If it looks like all those files are present, you might try FTPing them again. I've personally never had a problem with corrupt files that I've FTP'd, but I've seen a bunch of issues that were solved by re-FTPing.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Re-FTP'd. Works, Thanks. Probably human error. Uh,...ok, definitely human error.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I'm glad you got it sorted out!
-
Customizing the Add Customers form to include Wholesale/Retail pricing option
I have installed the Add Customers from Admin plugin (v2.0.2) to my store (v1.5.1) and it's working fine. :smile: But I would like to add the Wholesale/Retail pricing option to the add customer form. :unsure: I already have installed the Dual Pricing add-on (v2.0). which allows me to do this to the customer form from admin. Could someone walk me through which files I need to edit and in what way? I would also like to give customers the option of choosing the Wholesale/Retail option when they create an account. Any ideas on that?
Thanks,
Tom
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
I'm not familiar with that add-on, but to add a Wholesale/Retail switch (and associated database manipulations) to this plugin, you'll need to modify:
/YOUR_ADMIN/add_customers.php: Add a table-row to display (I'm guessing) a checkbox field that identifies whether (checked) or not (unchecked) the customer is a wholesale one.
/YOUR_ADMIN/add_customers_backend.php: Update the insert_customer function to check for the presence (i.e. checked) of the wholesale-customer $_POST variable and set the associated field in the required table of the database.
/YOUR_ADMIN/includes/languages/english/add_customers.php: Add whatever label you want to have associated with the Wholesale/Retail checkbox.
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
I've installed this plugin on ZC 1.5.1. Under Customers\Add Customer, I can manually type in a new customer's details and it'll add my customer to the database perfectly. But importing a CSV file using the very same formatting as the "example_addresses.csv" file supplied, causes the screen to flash/refresh and then nothing is added to the customer list. I've tried the Part and File options, upper and lower case letters for everything, but still no csv import. Any ideas?
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
jasontomczak, are there any myDebug*.log files in your store's /logs directory?
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
Quote:
Originally Posted by
lat9
jasontomczak, are there any myDebug*.log files in your store's /logs directory?
Yes. Here it is, with my server path obscured:
[16-Feb-2013 14:32:47] PHP Warning: Invalid argument supplied for foreach() in /store/oooooo/add_customers.php on line 129
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
Would you send me either the full or a partial CSV file via PM so that I can "play" with it and see what's going on?
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
I downloaded your file and can verify that I receive the same behavior (screen just refreshes), but I don't get any log files (I'm running PHP 5.3.8). What version of PHP are you running?
I most likely won't be able to get more into this until tomorrow ...
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
Quote:
Originally Posted by
lat9
I downloaded your file and can verify that I receive the same behavior (screen just refreshes), but I don't get any log files (I'm running PHP 5.3.8). What version of PHP are you running? I most likely won't be able to get more into this until tomorrow ...
Looks like PHP 5.2.x. Not sure which subversion, but 5.2-something. Tomorrow is fine. Thanks! :D
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
What OS are you running and what program are you using to create the CSV file? The file you sent me has only <CR>, not <CR><LF> at the end of each line.
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
Gotta love www.php.net! I'll get an update together within the next couple of days. In the interim, you'll need to edit /YOUR_ADMIN/add_customers_backend.php, adding one line and changing another around line 40:
Code:
...
function check_file_upload() {
global $db, $row_positions, $post, $acfa_lines;
$files = $_FILES['bulk_upload'];
$errors = array();
$to_insert = array();
if (!zen_not_null($files['name'])) {
$errors[] = ERROR_NO_UPLOAD_FILE;
} else {
if ($files['error'] != 0) {
$errors[] = sprintf (ERROR_FILE_UPLOAD, $files['error']);
} else {
$pos = strrpos($files['name'],'.')+1;
$allowed_extensions = array ( 'TXT', 'CSV' );
$extension = substr ($files['name'], $pos);
if ( (strlen ($extension) < 1 ) || !in_array(strtoupper($extension), $allowed_extensions) ) {
$errors[] = sprintf (ERROR_BAD_FILE_EXTENSION, $extension) . implode(', ', $allowed_extensions);
} else {
$path = DIR_FS_UPLOADS . $files['name'];
if (!move_uploaded_file($files['tmp_name'], $path)) {
$errors[] = ERROR_CANT_MOVE_FILE;
} else {
chmod($path, 0775);
ini_set("auto_detect_line_endings", true); /*v2.0.3a*/
$lines = file($path, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); /*v2.0.3c*/
...
I'll also beef up some of the error-detection that's present in the files ...
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
Quote:
Originally Posted by
lat9
What OS are you running and what program are you using to create the CSV file? The file you sent me has only <CR>, not <CR><LF> at the end of each line.
Using OS X Mountain Lion and Excel for the CSV. I saved it in Windows Comma Separated format.
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
Quote:
Originally Posted by
lat9
Gotta love
www.php.net! I'll get an update together within the next couple of days. In the interim, you'll need to edit /YOUR_ADMIN/add_customers_backend.php, adding one line and changing another around line 40:
Code:
...
function check_file_upload() {
global $db, $row_positions, $post, $acfa_lines;
$files = $_FILES['bulk_upload'];
$errors = array();
$to_insert = array();
if (!zen_not_null($files['name'])) {
$errors[] = ERROR_NO_UPLOAD_FILE;
} else {
if ($files['error'] != 0) {
$errors[] = sprintf (ERROR_FILE_UPLOAD, $files['error']);
} else {
$pos = strrpos($files['name'],'.')+1;
$allowed_extensions = array ( 'TXT', 'CSV' );
$extension = substr ($files['name'], $pos);
if ( (strlen ($extension) < 1 ) || !in_array(strtoupper($extension), $allowed_extensions) ) {
$errors[] = sprintf (ERROR_BAD_FILE_EXTENSION, $extension) . implode(', ', $allowed_extensions);
} else {
$path = DIR_FS_UPLOADS . $files['name'];
if (!move_uploaded_file($files['tmp_name'], $path)) {
$errors[] = ERROR_CANT_MOVE_FILE;
} else {
chmod($path, 0775);
ini_set("auto_detect_line_endings", true); /*v2.0.3a*/
$lines = file($path, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); /*v2.0.3c*/
...
I'll also beef up some of the error-detection that's present in the files ...
SUCCESS!! It worked that time! Thank you thank you!
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
I've submitted v2.0.3 to the Plugins area; that version includes the change identified above and some additional error-checking on the imported CSV file.
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
I installed the add customer in admin mod on zen cart 1.5.1. When I clicked on the link "Formatting the CSV" in my admin area under customer>add....a page not found opens with the link at the top with the following link prefix ending, add_customers_formatting_csv.html I have look in the admin folder and can't find anywhere add_customers_formatting_csv.html file
My question:
Where would I find this file in my file manager?
How do I get the link to open to the add_customers_formatting_csv.html page?
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
divaboutiques, that file is part of the distribution zip-file that came with the plugin; it's in the root directory. Copy that file to the root directory of your store and the link will be resolved.
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
Quote:
Originally Posted by
lat9
divaboutiques, that file is part of the distribution zip-file that came with the plugin; it's in the root directory. Copy that file to the root directory of your store and the link will be resolved.
Thank you for the response!
i went ahead and found the add customer from admin mod......the mod I downloaded was admin new customer which didn't have all the csv files.....
and it worked thanks!
-
Re: Customizing the Add Customers form to include Wholesale/Retail pricing option
Hi,
Im running1.5.1 and can not get this to show up in the admin menu? any tricks to it, ive installed plenty of mods before, am I missing something
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
SLY Designs, the only reason that the "Add Customers" link wouldn't show on the Customers tab in your admin is if either (a) you didn't copy /includes/extra_datafiles/add_customers_filenames.php, /includes/functions/extra_functions/init_add_customers.php and /includes/languages/english/extra_definitions/add_customers_name.php into your admin directory or (b) you copied the /YOUR_ADMIN directory contents to your store's root directory without renaming /YOUR_ADMIN to match your admin's "secret name".
The install for the v1.5+ series happens automatically via /YOUR_ADMIN/includes/functions/extra_functions/init_add_customers.php, so those are the only two reasons that I can fathom for the tool not showing up in your admin toolbar.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I have successfully installed your addon to my Zen cart to Add Customers from Admin - I've given it 5 stars too!!
I originally used the bulk upload which worked great and and now add them one by one as I sell on ebay.
I have figured out that it will default to customer Email type (HTML/Text) by reading the setting in Configuration-Customer Details-Customer Default Email Preference
However, it does NOT read the setting Configuration-Customer Details-Show Newsletter Checkbox which I want it to default to Subscribe.
Which php file would I edit so that as I add a customer manually it is defaulted to Subscribe to Newsletter, I always have to change this as I add each customer and it would save a few mouse clicks.
I am a .net developer by trade, just not as familiar with php, but am always happy to give something a try!!
Keep up the great work.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
rcbitz
I have successfully installed your addon to my Zen cart to Add Customers from Admin - I've given it 5 stars too!!
I originally used the bulk upload which worked great and and now add them one by one as I sell on ebay.
I have figured out that it will default to customer Email type (HTML/Text) by reading the setting in Configuration-Customer Details-Customer Default Email Preference
However, it does NOT read the setting Configuration-Customer Details-Show Newsletter Checkbox which I want it to default to Subscribe.
Which php file would I edit so that as I add a customer manually it is defaulted to Subscribe to Newsletter, I always have to change this as I add each customer and it would save a few mouse clicks.
I am a .net developer by trade, just not as familiar with php, but am always happy to give something a try!!
Keep up the great work.
You want to think about this before you make this change. I'm pretty sure this defaults to no because of spam laws. And you are subscribing on behalf of your customer which is not the same as your customer subscribing for themselves.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
@rcblitz, DivaVocals gave you good advice regarding customers' consent to subscribe to your newsletter.
If you're comfortable "signing up" one or more customers using the bulk upload feature, there is already a provision in the plugin to accomplish that. Just include a 'newsletter' column (see the readme.html and the example_addresses.csv file in the plugin's root directory) in your CSV file and specify the column's value as either 0 or 1 for each bulk-uploaded customer.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Thanks DivaVocals & lat9 for your replies - I understand the consent regarding the newsletter and spam.
I am doing a promotion at a tradeshow where customers fill out a card to subscribe to my newsletter and go into a draw to win a prize, so in that instance I would have their consent.
So aside from the spam issue and just looking at it technically I note that on line 393 of the file add_customers.php
PHP Code:
<td class="main"><?php echo zen_draw_pull_down_menu('customers_newsletter', $newsletter_array, (($cInfo->customers_newsletter == '1') ? '1' : '0')); ?></td>
would I change one of those 1's or 0's to default to the other option, I still think it would be nicer to read the setting from Configuration-Customer Settings
more like on line 386 where it uses the default mail format:
PHP Code:
echo zen_draw_radio_field('customers_email_format', 'HTML', $email_pref_html) . ' ' . ENTRY_EMAIL_HTML_DISPLAY . ' ' . zen_draw_radio_field('customers_email_format', 'TEXT', $email_pref_text) . ' ' . ENTRY_EMAIL_TEXT_DISPLAY ;
Otherwise I will have a play and see what happens - after making a backup of course!!
Thanks again Peter
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Peter, here's an updated code fragment (/YOUR_ADMIN/add_customers.php, starting at line#391) that should correct the issue you identified:
Code:
<tr>
<td class="main Label"><?php echo ENTRY_NEWSLETTER; ?></td>
<?php
//-bof-v2.0.4-a
$newsletter = ( (empty($cInfo) && ACCOUNT_NEWSLETTER_STATUS == '2') || (isset($cInfo) && $cInfo->customers_newsletter == '1') ) ? '1' : '0';
//-eof-v2.0.4-a
?>
<td class="main"><?php echo zen_draw_pull_down_menu('customers_newsletter', $newsletter_array, /*v2.0.4c*/ $newsletter); ?></td>
</tr>
Just add/change the code highlighted in red. I'll package this up shortly for submission to the plugins area. Thanks for the report!
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
v2.0.4 has been submitted to the plugins, containing the correction indicated in the previous post.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Thankyou lat9 - the mod worked perfectly!
Keep up the great work..
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
lat9
SLY Designs, the only reason that the "Add Customers" link wouldn't show on the Customers tab in your admin is if either (a) you didn't copy /includes/extra_datafiles/add_customers_filenames.php, /includes/functions/extra_functions/init_add_customers.php and /includes/languages/english/extra_definitions/add_customers_name.php into your admin directory or (b) you copied the /YOUR_ADMIN directory contents to your store's root directory without renaming /YOUR_ADMIN to match your admin's "secret name".
The install for the v1.5+ series happens automatically via /YOUR_ADMIN/includes/functions/extra_functions/init_add_customers.php, so those are the only two reasons that I can fathom for the tool not showing up in your admin toolbar.
Oh my, I am the biggest idiot ever, I've been moding stuff like this and VB etc for years, I can't believe I didn't pick it up, you were correct, I was uploading to the admin file not the renamed file, I wonder why I could never get any mods to work .... :censored:
I just dragged all the files into the renamed folder and tried it and it worked perfectly
Many thanks
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
lat9
v2.0.4 has been submitted to the plugins, containing the correction indicated in the previous post.
... it's now available for download ...
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Just downloaded v2.04 and noted that the file init_add_customers.php appears twice in the downloaded file set:
/YOUR_ADMIN/includes/functions/extra_functions/init_add_customers.php
and
/YOUR_ADMIN/includes/functions/init_add_customers.php
Either I am missing something or the latter has been accidentally added to the package?
Cheers / Frank
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
You're right, Frank. I don't know how /YOUR_ADMIN/includes/init_add_customers.php crept into v2.0.4 :huh: ... but it's not used and won't be there on any future release.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I get a move permissions error on this. What file is this attempting to push the upload?
Also where can I insert the group pricing designation so that this can be bulk uploaded too?
Thanks for any help
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
JimmyV
I get a move permissions error on this. What file is this attempting to push the upload?
Also where can I insert the group pricing designation so that this can be bulk uploaded too?
Thanks for any help
I'm not sure what a "move permissions error" is. What browser are you using? The upload is checked in the check_file_upload function in /YOUR_ADMIN/add_customers_backend.php.
The group pricing can be specified via a column with a header value of customers_group_pricing.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
OK thanks for the direction. I wasn't sure if it was loading into a folder and then posting to the db. I will look at the code and post what I do to fix it for future reference.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I added the group column and it's not loading that data and also not throwing an error. Any suggestion on that?
And the move error was requiring me to make admin a 777 while the upload was done. Just an FYI it likely depends on your environment if it throws that error.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I've submitted v2.0.5 to the plugins area (http://www.zen-cart.com/downloads.php?do=file&id=1477) to correct the issues that JimmyV reported; it should be available shortly.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Totally Awesome! It works flawlessly for loading huge numbers of clients. Having the added group column makes life even easier.
Might I suggest adding multiple additional shipto's? Just a thought as it's probably right there and more columns is always better than less :)
Thanks very much to Lat9 for a immediate solution to my problem!
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
The group pricing is the group_id number from your db which may or may not be the same as your group pricing designation. Once you realize that this upload method works perfectly.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quick question about adding people using this plugin. You mention the option to Re-send the welcome email for anyone who has not already logged into your store. Does that mean you would be entering in people who have already created accounts on your site? If so, how does the plugin handle existing accounts and which field is the criteria for whether the account is unique or not? This is my first Zen-cart (or any cart for that matter) and I'm still trying to get a grasp of the whole thing. Thanks for your help.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
jcbazemore
Quick question about adding people using this plugin. You mention the option to Re-send the welcome email for anyone who has not already logged into your store. Does that mean you would be entering in people who have already created accounts on your site? If so, how does the plugin handle existing accounts and which field is the criteria for whether the account is unique or not? This is my first Zen-cart (or any cart for that matter) and I'm still trying to get a grasp of the whole thing. Thanks for your help.
I'm "pretty sure" that when a person creates an account that their login count gets set to one, so the only time a welcome-email would be resent is when you've added a customer (and the login count is set to 0). An email address is the "key" to a unique account in the Zen Cart structure.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Thanks for the info. I can't wait to try it out!
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I think I have missed something; were in admin do I 'add customers from admin?
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
adb34
I think I have missed something; were in admin do I 'add customers from admin?
If you've installed it correctly, there will be a new menu item in your admin: Customers->Add Customer
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
lat9
If you've installed it correctly, there will be a new menu item in your admin: Customers->Add Customer
No I will have to check and see what I have missed.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
You might have experienced a hiccup when you uploaded the files; make sure that you renamed the YOUR_ADMIN folder to match your custom admin folder name.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Hey, I'm having a similar problems as JimmyV.
When importing a CSV, even the sample that came with the mod.
I get:
There were errors:
Could not move file, check folder permissions.
Any ideas?
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
Dave_mck
Hey, I'm having a similar problems as JimmyV.
When importing a CSV, even the sample that came with the mod.
I get:
There were errors:
Could not move file, check folder permissions.
Any ideas?
Try changing /YOUR_ADMIN/add_customers_backend.php (starting at line 35 in v2.0.5) from:
Code:
} else {
if (!defined('DIR_FS_UPLOADS')) define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_IMAGES . 'uploads/'); /*v2.0.5a*/
$path = DIR_FS_UPLOADS . $files['name'];
if (!move_uploaded_file($files['tmp_name'], $path)) {
$errors[] = ERROR_CANT_MOVE_FILE;
to
Code:
} else {
// if (!defined('DIR_FS_UPLOADS')) define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_IMAGES . 'uploads/'); /*v2.0.5a*/
$path = DIR_FS_BACKUP . $files['name'];
if (!move_uploaded_file($files['tmp_name'], $path)) {
$errors[] = ERROR_CANT_MOVE_FILE;
... and let me know if that corrects the problem.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Yup, that did it.
You are the Guru!
Thanks, Dave.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Thanks, Dave.:blush: I'll incorporate that correction into the plugin's distribution zip-file and get that uploaded "soon".
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Since this plugin performs no core-file overwrites and has no template-related changes, it's Zen Cart v1.5.2-ready!
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Hi thank you for this plug in.
Is there a way to manually set passwords at all? My mail servers not set up and won't be for a little while so kind of stuck.
Thanks
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Hate to double post but I can't edit my first post.
I've installed the plugin and its working but how do I or the added customer find out the password? I have set up a gmail smtp for now and did a test add and the welcome email had no pass information so the customer would only have their email address.
Thank You
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
The added customer can go to your login screen and click the "Forgotten Password" link to have a new password sent to them. There's also a (relatively new) "Admin Change Password" plugin (I haven't used it).
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I entered 100 customers today with no problem. Decided to take a break before entering more. When I went back to put more in I got an error that says Access Denied. Any ideas?
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
figured it out...somehow the permissions on that file got changed to write only. go figure....no idea how that happened though.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I'm glad you figured it out; it's strange, though, that the file's permissions were magically changed.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Hi Lat9
Does this mod play nicely with your Customer Minimum Account mod?
The reason I ask is that I have both installed yet when I attempt to manually add an individual (I've not tried via bulk upload as no call to do so) customer (filling in all displayed info options) then continue with the submit button the page simply refreshes (still containing the customers details) yet doesn't populate the customer to the list of customers.
I'm assuming 'somewhere' there is some missing required information that the add customer mod is requiring but the minimum account mod is not offering?
Below is an excerpt of errors using your other clever mod :wink:
PHP Code:
[09-Jun-2014 20:29:59 UTC] PHP Notice: Use of undefined constant SUPERUSER_PROFILE - assumed 'SUPERUSER_PROFILE' in /home/MYDIRECTORY/public_html/MYSECRETADMIN/includes/init_includes/init_admin_auth.php on line 11
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: customers_fax in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers_backend.php on line 410
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: customers_gender in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers_backend.php on line 414
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: customers_dob in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers_backend.php on line 415
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: customers_referral in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers_backend.php on line 417
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: send_welcome in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers_backend.php on line 418
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: default_address_id in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers_backend.php on line 430
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: entry_suburb in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers_backend.php on line 432
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: entry_company in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers_backend.php on line 437
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: entry_state in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers_backend.php on line 438
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined variable: feedback in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers.php on line 126
[09-Jun-2014 20:29:59 UTC] PHP Notice: Undefined index: insert_y in /home/MYDIRECTORY/public_html/MYSECRETADMIN/add_customers.php on line 224
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I haven't tried the merge between Add Customers from Admin and Minimum Customer Account Information, they shouldn't overlap much since one's totally admin-side and the other is totally store-side! There would be some of the changes to the "Add Customers" processing, I'm thinking, to pull in the MCAI create-account processing (not a merge, per se, but additional development).
The PHP_NOTICE messages you show are simply the result of sloppy programming, which will be corrected in the next release of ACfA, but should not affect your ability to add a customer.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
lat9
I haven't tried the merge between Add Customers from Admin and Minimum Customer Account Information, they shouldn't overlap much since one's totally admin-side and the other is totally store-side! There would be some of the changes to the "Add Customers" processing, I'm thinking, to pull in the MCAI create-account processing (not a merge, per se, but additional development).
The PHP_NOTICE messages you show are simply the result of sloppy programming, which will be corrected in the next release of ACfA, but should not affect your ability to add a customer.
hmm, I've poked and prodded but no luck. I'm assuming that the warning/error notification of an incomplete form is not displaying hence the page never processing.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Hi,
I'm trying to implement this http://www.zen-cart.com/downloads.php?do=file&id=425 to be triggered when adding a customer from admin, see my post here http://www.zen-cart.com/showthread.p...91#post1251091 i hope someone can shed some light
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
What you're trying to achieve, while possible, will take some time/investigation (i.e. beyond the scope of free forum-based support) since the MailChimp Newsletter Sidebox plugin is store-side-only while Add Customers From Admin operates only on the admin side. You'll need to copy some of the files from the MailChimp plugin to your admin folders for this functionality to operate properly.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
This plugin works with v1.5.4 with no changes
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
adb34
This plugin works with v1.5.4 with no changes
Thanks for the confirmation!
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Hi There,
I added this onto my admin and it seems to be working fine. However if i try to edit an existing customers date of birth, when I click update the date of birth changes to 13/02/22/0 then if I click update again it changes to 30/11/2036 it's the same everytime. Eventually it accepts the 30/11/2036 date but no other and I can't change it. I am using V1.54 not an upgrade.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
Annie_zaz
Hi There,
I added this onto my admin and it seems to be working fine. However if i try to edit an existing customers date of birth, when I click update the date of birth changes to 13/02/22/0 then if I click update again it changes to 30/11/2036 it's the same everytime. Eventually it accepts the 30/11/2036 date but no other and I can't change it. I am using V1.54 not an upgrade.
I can't reproduce this.
What other mods did you install?
Are updating the DOB in the customers interface or within 'add customers'?
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
Annie_zaz
Hi There,
I added this onto my admin and it seems to be working fine. However if i try to edit an existing customers date of birth, when I click update the date of birth changes to 13/02/22/0 then if I click update again it changes to 30/11/2036 it's the same everytime. Eventually it accepts the 30/11/2036 date but no other and I can't change it. I am using V1.54 not an upgrade.
Please don't post the same thing in two different places. It is hard to give appropriate help this way. Here you didn't state the entire problem, causing some to waste their time. You need to fix the other problem first.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
lruskauff
Please don't post the same thing in two different places. It is hard to give appropriate help this way. Here you didn't state the entire problem, causing some to waste their time. You need to fix the other problem first.
Thanks lruskauff - I wouldn't have answered this post if I had noted the duplication....
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
frank18
I can't reproduce this.
What other mods did you install?
Are updating the DOB in the customers interface or within 'add customers'?
Hi Frank, I am updating the customers info from within admin>customers>edit
The only other mods I am using are Auspost, Easy populate 4 and Add customers from admin.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
Annie_zaz
Hi Frank, I am updating the customers info from within admin>customers>edit
The only other mods I am using are Auspost, Easy populate 4 and Add customers from admin.
Did you make any changes to your admin/customers.php file ?
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
frank18
Did you make any changes to your admin/customers.php file ?
No I haven't . I am going to stop posting in this thread as I removed the mod and this issue doesn't seem to be related to this mod. Thanks for your time.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I've just submitted v2.0.7 to the plugins for review. Changes are:
- Updated to use zen_create_PADSS_password, if present, like I should have 3 years ago:blush:
- Add checks to prevent the issuance of PHP Notify logs
This version of the plugin fully supports Zen Cart v1.5.5.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Hi I downloaded the latest and found a small problem in the code:
syntax error, unexpected ')' in ...admin/add_customers_backend.php on line 194
this statement had an extra ")" at the very end "in red below"- removed it and seems to be working now
$customers_dob = (isset($inArray['customers_dob'])) ? zen_db_prepare_input('0001-01-01 00:00:00') : zen_db_prepare_input($inArray['customers_dob']));
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Thanks for the report, @Belaird. I've noted the issue (and your spot-on correction) in the plugin's github repository and will be re-submitting with the issue corrected in a couple of days.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I installed on ZC 1.5.4 and I have the Add Customer link in the Customers Menu, but get a blank page. When I check the error log I get this error:
[28-Jan-2016 15:18:04 America/Denver] PHP Parse error: syntax error, unexpected ')' in /home2/lhalspor/public_html/zenadmin/add_customers_backend.php on line 194
Any help would be appreciated.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I've got the change up on the plugin's GitHub repository (https://github.com/lat9/add_customers_from_admin); waiting for Zen Cart v1.5.5 to submit to the plugins.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I've submitted v2.0.8 to the plugins for review:
- BUGFIX - Correct PHP error introduced in v2.0.7
- CHANGE - Additional field-handling based on ZC 1.5.5 create-account processing.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
v2.0.8 is now available for download.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Quote:
Originally Posted by
lat9
This is the support thread for the Add Customers from Admin v2.0 plugin, created for v1.5.0 and later and is based on v1.08 of the plugin created for v1.3.x (
http://www.zen-cart.com/downloads.php?do=file&id=454).
The plugin has not yet been submitted to the Plugins area for distribution as I am still "gathering" requirements. Here is my initial list:
- Moved all language-specific text to the language file. Note: Additional defines appear as English within the Czech language files.
- Added auto-install script for v1.5.0+ admin
- If the currently-selected Country has zones, a drop-down menu of associated zones is presented; otherwise, the admin user must enter a "State" value.
- Updated the CSV help text to be more 'robust'
- Added basic validation for world telephone numbers
- Added preg_match validation for US, CA and GB postcodes
- User-selectable formatting for the Date of Birth fields
- BUGFIX: Missing check for required Company field
- BUGFIX: Incorrect check for minimum first-name length
- BUGFIX: Unspecified (i.e. empty) DOB accepted when the DOB is required
- BUGFIX: Non-zero "New Signup Gift Voucher Amount" resulted in a white-screen
- BUGFIX: Address records for countries that have zones were incorrectly created
I'm investigating the request to add a "Resend Welcome Message", but require guidance as to how current users envision this feature to work.
Is there an easy way to get rid of the bulk add stuff on the left, short of fixing the template and logic myself? My telephone CSR people really only need what is on the right for individual customers?
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I'll consider adding a configuration switch for a future release, but for the time being you can make a simple edit to /YOUR_ADMIN/add_customers.php to "not display" that section:
Code:
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<link rel="stylesheet" type="text/css" href="includes/stylesheet_acfa.css">
<link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
<style type="text/css">
<!--
#multiple { display: none; }
-->
</style>
<script type="text/javascript" src="includes/menu.js"></script>
<script type="text/javascript" src="includes/general.js"></script>
<script type="text/javascript">
function init()
{
cssjsmenu(\'navbar\');
if (document.getElementById)
{
var kill = document.getElementById(\'hoverJS\');
kill.disabled = true;
}
}
</script>
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
I just uploaded v2.0.9 to the Plugins for review:
[*] BUGFIX: Labels for "Shipping Address" and "Newsletter Signup" weren't being displayed.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
v2.0.9 is now available for download.
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Ok, I feel really stupid asking this but my brain is just not working right now!
Where do I copy the directory to???
It says to rename YOUR_ADMIN file... I don't know what/where this is!
Is it like in public_html/includes/languages/....?
Is that all there is to it?
Can someone give me step by step?
www.softscents.net
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
The YOUR_ADMIN folder "represents" the name of your secret_admin_folder; you've been accessing your Zen Cart admin, for example, using a link like www(dot)softscents.net/secret_admin_folder.
You can use your favorite FTP program (like WinSCP or FileZilla) to "upload" all the files present in the plugin's /YOUR_ADMIN folder to your Zen Cart's file-system's /secret_admin_folder/ (since there are no core-file overwrites).
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
WOO HOO! You're a genius! It took me a couple tries, but finally figured out it where that silly named folder is and it works!!!
Thank you!!! *happy dance*
-
Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
Hi,
I've just installed Add Customers From Admin version 1.5.0.
I'm adding customers details individually as and when a customer calls us.
Just wondering if there is a way to switch off the customer's e-mail address field so that it's not necessary to enter an e-mail address?
This would be handy for us as most of our customers who place an order over the 'phone do so because they are not familiar with using web sites and don't have an e-mail address.
Thanks in advance,
Christine