Jump to content

Recommended Posts

Give clients the ability to request account closure or deletion from the client area — with password confirmation, optional captcha, an optional emailed verification code, a grace period they can extend once, client and admin email notifications, and automatic execution by the daily cron. Before they go, an exit survey captures why they are leaving, matching answers can trigger a win-back discount offer, and pre-closure safeguards flag unpaid invoices, open tickets, pending transfers, active services and leftover credit. High-value requests can be held for manual admin approval, a finance guard blocks or warns on unpaid balances while leftover credit is kept, applied to invoices or forfeited, and the analytics dashboard tracks pending requests, win-backs, churn reasons and grace distribution with CSV exports throughout. Requests are managed from the admin area, every action is audit-logged with actor attribution and IP, sub-user access is permission-controlled, and the whole flow runs in native WHMCS modals on any template, with or without sidebars.

Owned License ($40.00) - https://www.hardsoftcode.com/cart/link/deleteclose-account-for-whmcs/owned

Source Code License ($280.00) - https://www.hardsoftcode.com/cart/link/deleteclose-account-for-whmcs/source

Features

Client self-service

  • Sidebar link (Close/Delete My Account, translated) in the configured panels — Account and/or Your Profile, primary and secondary sidebars — with a configurable text color.
  • WHMCS-native modal flow: password confirmation (with optional reCAPTCHA) → warning/confirm step → done notice. No custom dialog libraries.
  • Scheduled-request notice: clients who log back in while a request pends get a locked modal (date + notice) that cannot be dismissed — owners choose Confirm or Cancel in the footer; sub-users without permission get Logout only.
  • Deep link for sidebar-less templates: any client-area URL ending in #deleteaccount (e.g. clientarea.php#deleteaccount) opens the modal — paste it into any custom menu.
  • Sub-user permissions: owners can flag individual users on the /account/users//permissions page (new checkbox, same styling); flagged users may run the flow like owners.

Grace period & execution

  • Configurable grace period in days (close or delete mode); the request date and end date show in the admin grid with remaining-days countdown.
  • Daily cron executes due requests via closeclient / deleteclient and prunes the activity log per retention.
  • Emails: client notice + admin notification (with client details and admin link) on scheduling, using five seeded templates (close/delete notices + verification code) with merge fields registered in the editor.

Admin & audit

  • Analytics dashboard (landing tab): KPI cards (pending, due today, win-backs, completed), cancellation-trend line chart with range switcher, churn-reason doughnut, grace-distribution bar, summary CSV export.
  • Requests grid (DataTables): client link, request/end dates, remaining days, requested/canceled badges, token-protected cancel/delete with SweetAlert2 confirms.
  • Client summary alert: any client profile with a live request shows a red banner (schedule date, countdown, approval/extension state) linking to the Requests tab.
  • Activity Log: every settings save, admin cancel/delete and client schedule/acknowledge/cancel, attributed to admin (username), owner (client name) or sub-user (name), with per-actor colors, request IP + browser user-agent, DataTables search/sort/paging and day-based retention.
  • AJAX settings with top-right toast confirmations and session-expiry handling; MiniColors picker for the sidebar link color. Every save writes one log entry listing exactly what changed (Days 15 > 30; Finance Guard warn > block).
  • Admin homepage widgets: pending queue (stats + grace bar) and win-back pulse (stats + churn doughnut); enable them from the homepage Customize panel.

Changelog v2.0.0

Fresh rewrite on the modern addon architecture (namespaced classes, Smarty admin + client templates, WHMCS-native modals).

Expansion pillars (shipped)

  • Exit survey (optional/required, stats + recent + DataTables).
  • Win-back offers (reason-matched promo with claimed/dismissed tracking).
  • Grace extension (+N days once, badge + modal notice, legacy-safe columns).
  • Pre-closure safeguards (warn/block scan: invoices, tickets, transfers, services, credit; Flags column).
  • Admin review (high-value requests held for approval: credit/services thresholds, Review badge + Approve action, locked client notice, cron skips unapproved).
  • CSV exporter (requests + survey answers, Excel-friendly, logged).
  • Finance guard (warn/block on unpaid balances at request + execution time; leftover credit kept, applied to invoices, or forfeited).
  • Email verification code (optional 6-digit second factor, auto-sent on step open, 10-minute expiry, 5-attempt lockout) + request IP and browser user-agent on every activity-log entry.
  • Analytics dashboard (default landing tab: KPI cards, Chart.js trend/survey/grace charts with range switcher, summary CSV export; cron logs completions).
  • Client summary alert (red banner on profiles with a live request) + per-change settings audit (Days 15 > 30; secrets masked).
  • Admin homepage widgets (pending queue + win-back pulse via AdminHomeWidgets, each with stats and a mini chart).

New features

  • WHMCS-modal request flow (password → confirm → done; locked scheduled notice).
  • Analytics dashboard as the default landing tab (KPI cards, Chart.js trend/survey/grace charts, summary CSV export).
  • Sub-user permission checkbox on the core permissions page with owner-or-flagged enforcement everywhere.
  • Sidebar-less deep link (#deleteaccount) with copy button in Settings.
  • Activity log with admin/owner/sub attribution, retention and cron pruning.
  • Sidebar link color picker; Account/Your Profile panel toggles across both sidebars.
  • AJAX admin (toasts, SweetAlert2 confirms, DataTables grids, MiniColors).

Updates & improvements

  • Legacy mod_* data auto-migrates on activation without overwriting.
  • Email templates seeded only when missing (re-activation can't duplicate).
  • Cron condition fixed (due + pending only); merge-field editor guards.
  • Captcha remote-IP, unserialize and token handling hardened.

Fixes

  • Late sidebar priority so the Account panel exists before linking.
  • Beacon-era click work replaced by modal POSTs; session-expiry redirects detected.
  • Captcha render races, footer button timing, modal lifecycle resets.

1792039226_001.png

1792039248_002.png

1792039269_003.png

1792039292_004.png

1792039313_005.png

1792039335_006.png

1792039364_007.png

1792039392_008.png

1792039433_009.png

1792039453_010.png

1792039477_011.png

1792039497_012.png

1792039520_013.png

1792039546_014.png

1792039569_015.png

1792039593_016.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated