Skip to content

Move from HostFact to ClientFence

The HostFact import copies your HostFact clients, products, hosting, domains and billing into ClientFence. It reads HostFact through its API, saves what it reads in a private file on your server, then imports that file with the same steps as the WHMCS import. Nothing changes in HostFact, and nothing is emailed, charged or created on a server.

  • A fresh install. The import keeps HostFact’s invoice numbers, so it does not start on an install that already has clients, orders, invoices or tickets.
  • Your HostFact API key, with your ClientFence server’s IP address allowed in HostFact’s API settings.
  • The default currency set in ClientFence. HostFact has no currencies, so every amount comes over in that currency.
  • PHP’s pdo_sqlite extension, which most PHP builds include.
  • The same payment gateways set up here.
  1. Go to System → Settings → System and open the Migration tab (Super Administrators only).
  2. Under Move from, select HostFact. Under Import from HostFact, enter the HostFact URL (the https:// address you open HostFact at) and the HostFact API key, then select Save and test. If a plan was made from another system, saving deletes it after you confirm, and you make a new one.
  3. Select Read HostFact and keep the page open. If it stops, fix the cause and select Go on reading HostFact.
  4. Select Make the plan. It shows what was read and lists the server checks to fix.
  5. Optional: every product comes over as a custom product. To make one a hosting product, add its server in ClientFence first, then choose the server under Products in the plan: see Choose what each product becomes.
  6. Select Start the import and keep the page open, then Check against HostFact to compare the counts.
  7. To keep a record, select Download CSV on the plan before the import and Download audit CSV after it. See Import plan and audit files.

Clients with their address, phone, company, VAT number, client group and comment; extra invoice email addresses as invoice contacts; products and their prices; domain extensions with their yearly prices; hosting and other subscriptions with their price and due date; domains; invoices and their lines, with HostFact’s invoice numbers; credit notes; one payment per paid or part-paid invoice; and tax rates. Each client’s language comes over when ClientFence has it. Clients without a HostFact client area login come over as Inactive. A domain’s registrar is matched to one set up here, or set to Custom.

HostFact’s API does not give out the following, so they are not imported:

  • Passwords. Clients set a new one with Forgot Password?.
  • Currencies. Every amount comes over in the default currency.
  • Payment history. A part-paid invoice gets one payment for what was paid, and the warnings name it.
  • Credit balances, tickets, staff, custom fields and saved payment methods.

Left out on purpose:

  • Taxes switched on. The rates on products and invoices come over as tax rules with tax switched off: check them under System → Tax Rules, then turn on Enable Tax Support in its Tax Settings tab before new invoices are made. See Taxes. Imported invoices keep the tax HostFact charged.
  • Domains without a subscription come over with automatic renewal off, since HostFact did not bill them.
  • Services billed every 2, 4 or other months that ClientFence does not bill (1, 3, 6, 12, 24 or 36). The warnings name each one.
  • More than one email address or client group. The first one comes over, and the warnings name the client.

When you move over, stop HostFact’s automatic invoices and reminders, so clients are not billed twice.

For a large HostFact install, run the same steps as the site user once the URL and key are saved:

Terminal window
php console.php clientfence:whmcs-import hostfact
php console.php clientfence:whmcs-import plan
php console.php clientfence:whmcs-import apply
php console.php clientfence:whmcs-import verify

Add --restart to the first command to read HostFact again from the start.