Contributions

Reports (Category Index)
Search: 

Inactive User

This small report for admins shows all inactive users.

Inactive means: User Creates an account and never made an order.

You also can see:
Newsletter YES or NO
Customers Name and Mailadress with link to mail him

And you have a button to delete the customer

I need it becuase:
What can I do with a customer never made an order and dose not want to receive my newsletters.

Screenshot is included.

All thanks to Alex Z. becuase he buld the basiscode for this contribution.

Expand All / Collapse All

Inactive User Report/Removal version 2.0 30 Apr 2011

A complaint about problems with the multi-customer deletion routines in this contribution (which I had never used since I always used the single customer delete) prompted me to take another look at this contribution. What I saw prompted a major rewrite.

Changes made:
*Bug fixed all places where posted variables had to be read so they could be used but they weren't read.
*Added a pulldown to determined how many months old the last login (or creation if there is no last login) must be before a customers account can be displayed or deleted. Accounts newer than this cannot be deleted even if the date range for a multi-delete gets set to a date that would otherwise include them.
*Added an entry that the the account creation date must be older than in order to delete orders with no logins. The old version could have deleted a brand new customer (hence no login date) that was in the middle of placing an order.
*Customers that have placed orders are now shown in the listing since customers that have not ordered in several years can hardly be called active.
*During either multiple delete you can now delete all customers that match the range, only those that have not placed orders, or only those that are not subscribed to newsletters.
*Deletion now exactly matches the routine used by customers.php. At least one step was missing in the previous versions.
*The pages to confirm deletion of multiple customers now list the customers that will be deleted under the confirm and cancel buttons so you can make sure you are deleting the right people. If deletion is confirmed the customers that are deleted will be listed as they are removed.

Updating from a prior version is as simple as replacing the two PHP files. You can also remove the functions added to htmloutput.php and general.php by previous versions of this contribution if you like since they are no longer used.

Full install with instructions is attached.

Inactive User bugfix 16 May 2008
InActive User (Install.txt) 17 Aug 2006
Inactive User 17 Aug 2006
Inactive User 1.2 Andreas Kremser 2 May 2004
Updated v1_1 Alex Zach 1 May 2004
Inactive User 1.0 Matthias F 30 Apr 2004
Inactive User Matthias F 30 Apr 2004

Note: Contributions are used at own risk.