Reseller Suite for WHMCS — Provider Guide 4/5: Operations

15 min read 4 views

Version 0.9.1 · Provider Guide, part 4 of 5. Every screen of the admin area, explained setting by setting.

7. Operations

  • Setup check, Orders that need a decision (rare cases where a registrar did not answer).
  • API usage and module versions resellers run.
  • Your alerts: Telegram, Slack, Discord or WhatsApp for applications, payouts, shortfalls, reviews, abuse, unusual API use and alerts from other Arahoster products.
  • Settings:
  • weekly or monthly report;
  • monthly report email to resellers (on by default): on the 1st of each month every active reseller gets a summary of the last month in his WHMCS language: completed orders, what he spent from his balance (charges minus refunds of his orders), store sales and profit (Full Suite stores only), new clients, renewals due this month with the estimated cost, his free balance and whether it covers them (with an Add funds link when it does not) and his top items (domains by extension, products by name). Only his own figures. Edit the wording in the WHMCS email template Reseller Monthly Report (Setup → Email Templates; created by the addon in English, Arabic, Spanish and Norwegian and never overwritten; the figures are merge fields such as {$report_summary}, {$report_renewals}, {$report_balance}, {$report_top_items}, {$report_orders}, {$report_spent}, {$renewals_amount}, {$balance_free}, {$balance_covers}, {$topup_url}). Each reseller gets it once a month: the cron sends it from the first run on the 1st, within its time budget, and catches up until the 7th when a run could not finish. Resellers can switch it off for themselves under Tools. Nothing is sent in demo mode. On a reseller's page (Settings tab) Preview shows the email as he would get it now, in his language; nothing is sent; A plan reseller also sees his plan, until when its membership is paid and a scheduled plan change ({$report_plan}; the plan fee is invoiced on its own and never counted in the renewals); an account still waiting for its first top-up sees that requirement instead of whether his balance covers the renewals ({$report_first_topup}, also in {$report_balance}); and the month's statement with a link ({$report_statement}). On an installation updated from 0.7.x the report starts off until you switch it on (Overview reminds you); new installations have it on;
  • email "statement ready" on the 1st of the month (on by default): a reseller who gets the monthly report finds his statement in it and gets no second email; the others (report off for everyone or switched off by him) get this email as before;
  • days of notice before a price rise;
  • tax on top-ups;
  • daily expiry check;
  • new sign-in alerts for resellers;
  • two-factor authentication for resellers: Optional (default; each user decides) or Required for payouts and keys. When required, a user without 2FA cannot request payouts, mark store invoices paid by bank, manage API keys, change payment or mail credentials, webhooks, chat channels, Cloudflare, auto top-up or team rights, log in as a store client, upload bulk CSV files, decide held store orders or sell own services until he sets it up ("Set up two-factor authentication first").
  • Reseller area app and push notifications (both off by default):
  • Installable app: resellers can install the reseller area as an app (web app manifest with your company name and WHMCS logo, or a store's name, colour and logo on its domain; a generated icon when there is no PNG/JPEG logo on this server). Served by modules/addons/reseller_suite/pwa.php; nothing is written outside the addon folder. The service worker covers only index.php?m=reseller_suite, never stores pages with account data (only static files and an offline page) and clears its files on logout. Switching it off removes the worker from browsers that installed it.
  • Push notifications: low balance, failed orders, payout status, new store sales, website monitoring (down, back up, SSL expiring) and API integration problems, per device and per type, in each user's language; team members only for their areas. The first time you switch push on, a VAPID key pair is created (the private key is stored with WHMCS encryption). Messages are encrypted end to end and sent by the WHMCS cron through the browsers' push services (Google, Mozilla, Apple, Microsoft); devices that unsubscribed are removed automatically. Turning push on for a device (or adding a type) needs a fresh two-factor code when the user has 2FA, and 2FA when you require it. A password change and logging out (unless the user chose to keep them) end a user's notifications. The cron sends for at most 60 seconds per run, one run at a time, and leaves a push service that times out 3 times for the next run; access and team areas are checked again before each send. Generated icons are cached in modules/addons/reseller_suite/cache/ (not shipped in the ZIP); logos over 4096 px per side or 16 megapixels are not used.
  • The list shows subscribed devices (reseller, user, browser and system, types, last send, failures) with Send test (sent by the next cron run) and Delete.
  • Exports: balance movements for accounting; settings without secrets (and restore).
  • Maintenance notice for one server: only affected clients and resellers are told.
  • Website monitoring: turn on monitoring of end clients' websites and the stores' public status pages (off by default); set the shortest interval between checks (default 5 minutes) and how many websites each reseller may monitor (default 50; a number per group overrides it, empty = the default). Checks run from the WHMCS cron (so no interval is shorter than your cron period) in batches of about 40 seconds, one run at a time; websites not reached in one run are checked in the next. Each name is resolved once per run; no new DNS lookups start after 20 seconds, and a name whose lookup takes over 2 seconds is postponed by 5 minutes rather than marked down. Resellers can only monitor their own clients' active services and domains; another host name is accepted only for a service with its own dedicated IP (never your own host names or someone else's domains), and checks never connect to private, loopback, link-local, multicast or reserved addresses or through a proxy. The card shows how many websites are monitored and down, and the last 20 runs (checked, down, left for the next run, seconds, checker errors; errors are also in the WHMCS activity log). Raw checks are kept 30 days, daily figures 400 days.
  • How resellers pay: balance, spending pace, days left.
  • Store templates (menu Stores → Brands, Full Suite): six ready-made looks resellers apply to their stores with one click (Modern, Minimal, Corporate, Bold, Arabic-first, Dark). Switch each one on or off for all stores and choose the default for new reseller stores (or none). A template you switch off can no longer be applied; stores already using it keep it. The table shows how many stores use each template. Details in the Stores and Brands guide section 6.
  • Client reminders (menu Stores): allow resellers to send WhatsApp and SMS reminders from their stores to their own clients (renewals, unpaid and overdue invoices, suspensions, expiring domains), from their own accounts; set the most messages per store per day, per reseller per day (all his stores) and through your shared sender per day; optionally offer your shared SMS sender (Twilio or your HTTPS gateway; you pay for those messages; only the standard texts go through it, and its errors are listed only for you); see sent, failed and waiting messages per reseller for the last 7 days. Details in the Stores and Brands guide.
  • Abandoned carts (menu Stores, Full Suite): allow resellers' stores to remind signed-in clients about carts they left without ordering, by email and (through the store's own reminder sender) WhatsApp or SMS, with a resume link that brings the same cart back and an optional personal discount code on the last reminder; set the most reminders per cart (1–5) and the most cart messages per store per day; see abandoned and recovered carts, the recovered amount and reminders sent per reseller for the last 30 days. Always: an unsubscribe link in every message, nothing to clients who unsubscribed, never in the store's quiet hours, nothing after the cart was ordered or emptied, only the store's own clients; your shared SMS sender is never used. Cart reminders are service messages, so they do not need marketing email consent. Details in the Stores and Brands guide.

Moving from another reseller product (Settings → Moving from ModulesGarden…)

One-click migration brings resellers, their end clients, services, domains, prices and balances over from ModulesGarden Resellers Center, ModulesGarden Domains Reseller, ModulesGarden Products Reseller (found in your WHMCS database) and Blesta (export file). ModulesGarden Domain Orders Extended is listed too, but it stores no resellers, balances or domain owners, so there is nothing to import from it.

  1. Choose the parts (resellers, end clients, services and domains, prices, balances), the group and status of new resellers and the group that gets the prices, then Dry run. The dry run changes nothing and shows, per part, what would be imported, what is already in the suite, what was imported before and what is skipped or only reported, with the reason and examples (for example Belongs to another reseller, Needs the domain module, Negative balance (credit line)).
  2. Start import within a day of the dry run (if the old module's data changed since, run a new dry run). The import runs in batches with the WHMCS cron; Continue now runs the next batches at once. A run stopped by an error can be resumed; nothing already imported is imported again.
  3. Each import has a log of every record (imported, skipped, reported, error) and is in the audit log.

Rules:

  • The old module's tables are only read; their layout is read from the columns each table really has. Anything that cannot be matched safely is skipped and listed.
  • Running an import again never duplicates anything (each imported record is kept in a mapping table). Items that already belong to another reseller are never moved, and a service or domain goes to a reseller only when it belongs to his own WHMCS account or to one of his end clients.
  • Nothing is activated, renewed, set up or invoiced: the import records owners, end client links, group prices (never below your cost plus minimum margin, never over an existing price) and reseller accounts.
  • Services need the product module and domains the domain module; end clients (store clients) need the Full Suite.
  • Balances: a balance becomes wallet credit only with a ledger entry, and only when you are a Full Administrator and type the exact total shown by the dry run (leave it empty to import everything else). Negative balances (credit lines), amounts that cannot be read exactly and balances in another currency than the reseller's wallet are reported, never imported. WHMCS client credit (tblclients.credit) is never moved: it stays the client's credit in WHMCS.
  • Undo (Full Administrator, the most recent import only): removes exactly what that import created and takes imported credit back with a ledger entry. What has changed since (credit already spent or held, an edited price, an account with orders, clients or keys) is kept and listed; a reseller account with money history is closed, not deleted.

For other modules or table layouts, the Manual mapping below it lets you choose the table and its columns yourself (balances are never moved there).

Moving from Blesta

Blesta keeps clients, client groups, services and transactions, but no reseller tree, so you state in the file who belongs to which reseller.

  1. Import your Blesta clients into WHMCS first (with the same email addresses), and the domains and services with their domain names.
  2. Build the export file (JSON or CSV, UTF-8, at most 10 MB and 50000 records).
  3. Under Blesta (export file) choose the file and run the dry run. People are matched to WHMCS clients by email address (not case-sensitive; an address used by several clients is skipped), domains and services by domain name among the reseller's own and his clients' items.

JSON:

{
  "format": "arars-import", "version": 1,
  "resellers": [{"key": "1500", "email": "[email protected]", "balance": "25.00", "currency": "USD"}],
  "clients":   [{"key": "1600", "reseller": "1500", "email": "[email protected]"}],
  "services":  [{"key": "svc-1", "reseller": "1500", "type": "domain", "domain": "example.com"},
                {"key": "svc-2", "reseller": "1500", "type": "service", "domain": "shop.example.com"}],
  "prices":    [{"key": "p1", "type": "domain", "item": ".com", "action": "register", "period": "1", "currency": "USD", "price": "9.50"},
                {"key": "p2", "type": "product", "item": "7", "action": "recurring", "period": "monthly", "currency": "USD", "price": "4.50"}]
}

CSV: one header line record,key,reseller,email,type,domain,item,action,period,currency,amount and one line per record, record = reseller, client, service or price (amount is the balance of a reseller line or the price of a price line).

  • key: your own unique ID (for example the Blesta client or service ID); keep it the same if you import again.
  • reseller: the key of the reseller line it belongs to.
  • balance / currency: optional; the currency code must be the reseller's WHMCS currency, otherwise the balance is reported.
  • Prices: type domain (item = TLD, action register / transfer / renew / grace / redemption, period 1–10 years) or product / addon (item = WHMCS product or add-on ID, action recurring / setup, period monthly … triennially); they go to the group you choose.

Example queries on the Blesta database (check them against your Blesta version): reseller and client emails from contacts (contact_type = 'primary') joined to clients; domain names of services from service_fields; a client's credit per currency as approved payments not applied to invoices:

SELECT t.client_id, t.currency,
       SUM(t.amount - COALESCE((SELECT SUM(a.amount) FROM transaction_applied a WHERE a.transaction_id = t.id), 0)) AS credit
FROM transactions t WHERE t.status = 'approved' GROUP BY t.client_id, t.currency;

Demo mode (System → Demo mode)

For a public demo installation or for marketing screenshots taken only from fake data. Only Full Administrators see the forms; every action needs the WHMCS admin token and a typed word.

  • Fill with demo data (type DEMO): three groups (Demo Bronze / Silver / Gold) with prices for your first TLDs and products; six invented resellers in English, Arabic, Spanish and Norwegian (one waiting for approval, one sub-reseller) with notes, tags and partner profiles; four live stores with colours, pages, store prices and four clients each; hosting services and domains; paid and unpaid invoices; two top-ups per reseller; completed API orders and one failed order; store profit; a paid and a waiting payout; partner applications, a tier request, 30 days of store visits and website monitoring (one site down). Every name is invented and every domain and e-mail address ends in .test or example.com / .net / .org. Refused when demo data already exists, and when the installation already has real resellers or money unless you tick the second confirmation.
  • Money follows the normal rules: top-ups go through the top-up invoice and the ledger, orders hold money on the balance and capture it (the failed one releases its hold), store profit is credited and payouts are requested and paid through the balance — no negative balance anywhere.
  • Every row is tagged (table mod_arars_demo_rows). Remove demo data (type REMOVE) deletes exactly those rows — also what visitors of a public demo added to demo accounts — removes the demo WHMCS clients through WHMCS, and nothing else.
  • While demo data exists, nothing leaves the installation, for any reseller (real ones too): no e-mail (WHMCS's own included), SMS, WhatsApp, push, chat alert or webhook; no registrar or server module call (also when WHMCS starts it: create, suspend, unsuspend, terminate, change package; register, transfer, renew); no outbound HTTPS (payment services, PayPal payouts, VIES, Cloudflare, fraud services, RDAP, monitoring probes); the cron steps that only send are skipped; licence and update actions are refused (a key can still be entered on an unlicensed installation). Each one is logged as skipped (demo) on the page and in the WHMCS activity log. The routine daily licence check still runs. A Demo data banner shows in the admin area and at the bottom of every client area page (stores and reseller area).
  • Public demo: Reset demo every night (the daily cron removes and recreates the demo data); a demo login for the English demo reseller (reserved e-mail address and your own password, stored encrypted, applied at the next fill or reset) that you can show on the banner; a short hint for a read-only WHMCS admin account you set up yourself.

This article is part of the complete Reseller Suite for WHMCS guide. All guide articles.

Was this answer helpful?