Forums / Addon Admin Tools / Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]

Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]

Views: 41,568

Results 1 to 20 of 152
30 Aug 2012, 4:30 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

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.

2 Sep 2012, 4:38 PM
#3
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 2.0 (1.5.0 and later) [Support Thread]

lat9:

This updated version is now available within the Plugins area: http://www.zen-cart.com/downloads.php?do=file&id=1477.

Rockin'!!!!!:clap:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

11 Sep 2012, 3:45 PM
#4
lhungil avatar

lhungil

Totally Zenned

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

Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]

lat9:

This updated version is now available within the Plugins area: http://www.zen-cart.com/downloads.php?do=file&id=1477.

Very Cool!

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.

  1. A button inside the box to the right of a selected customer.
  2. 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.

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, 5:43 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

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).

11 Sep 2012, 6:07 PM
#6
lhungil avatar

lhungil

Totally Zenned

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

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 :)

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

21 Sep 2012, 8:12 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

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!

28 Sep 2012, 2:13 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

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.

28 Sep 2012, 4:43 PM
#9
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 2.0 (1.5.0 and later) [Support Thread]

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:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

30 Sep 2012, 8:03 PM
#10
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

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.

26 Oct 2012, 4:29 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

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:

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.

7 Nov 2012, 11:30 PM
#12
lafaverp avatar

lafaverp

New Zenner

Join Date:
Sep 2011
Posts:
27
Plugin Contributions:
0

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.

8 Nov 2012, 12:21 PM
#13
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

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?

8 Nov 2012, 7:04 PM
#14
lafaverp avatar

lafaverp

New Zenner

Join Date:
Sep 2011
Posts:
27
Plugin Contributions:
0

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.

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?

8 Nov 2012, 7:47 PM
#15
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

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.

8 Nov 2012, 9:39 PM
#16
lafaverp avatar

lafaverp

New Zenner

Join Date:
Sep 2011
Posts:
27
Plugin Contributions:
0

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.

9 Nov 2012, 1:07 PM
#17
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]

I'm glad you got it sorted out!

13 Nov 2012, 5:22 PM
#18
tom_r avatar

tom_r

New Zenner

Join Date:
Sep 2012
Posts:
16
Plugin Contributions:
0

Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]

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

13 Nov 2012, 6:06 PM
#19
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]

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.

16 Feb 2013, 11:14 PM
#20
jasontomczak avatar

jasontomczak

New Zenner

Join Date:
Feb 2013
Posts:
11
Plugin Contributions:
0

Re: Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]

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?