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.