WHMCS is a client management, billing & support solution for online businesses and the SiteHost Registrar Module integrates with WHMCS to allow domain registration, renewal, and transfers, as well as DNS management automatically via the SiteHost API. This document assumes you have a working WHMCS install.
First of all, download the latest version of SiteHost Registrar Module from here.
Next, in SiteHost Control Panel, create an API Key under the API
module that has access to the DNS
and Domain (SRS)
modules.
As a security best practice, we recommend locking the key down to the IP address of your WHMCS server.
Please check the SiteHost API article if you are having difficulty setting up the API Key.
The SiteHost Registrar Module is distributed as a compressed folder that must be copied over to your WHMCS installation.
sitehost/
folder into the folder /path/to/whmcs/modules/registrars
in your WHMCS installation.When the module folder has been copied over, the SiteHost Registrar Module must be enabled and configured within WHMCS.
https://api.sitehost.nz/
into the "APIServer" field.WHMCS also has instructions on how to configure a registrar.
Prices must be set for registration, renewal, and transfer for all the TLD's that you want to offer clients.
.co.nz
- not co.nz
.WHMCS also has instructions on how to configure domain pricing.
.nz
DomainsWhenever a domain is transferred to WHMCS, it will always be renewed for one year, this includes .nz domains.
However, SiteHost allows .nz
domains to be transferred without renewal (meaning free of charge), given that the domain is not expiring within 21 days of the requested transfer.
The registrar module has the option to make .nz domains transfer free (by overriding the price to $0.00) if the following criteria are met:
To enable it:
Free transfer for .NZ domain
option.Following Optional #1, in order to make it clear to your customers that the .nz domain transfer is free for them, you might need to make some tweaks to the WHMCS order form template of your choice.
List of files to modify
On WHMCS, we go to System Settings > Email Templates, and on Domain Messages choose Domain Transfer Initiated, we can add a condition like this to hide the registration length if the price is $0.00:
Domain: {$domain_name}
{if $domain_first_payment_amount != '$0.00 NZD'}
Registration Length: {$domain_reg_period}
{else}
Registration Length: ---
{/if}
Transfer Price: {$domain_first_payment_amount}
Renewal Price: {$domain_recurring_amount}
Next Due Date: {$domain_next_due_date}
The registrar-plugin will update the "Order Confirmation" email accordingly.