WHMCS module

This guide will help you install, configure, and manage the BaseKit plugin for WHMCs.

Prerequisites & assumptions

To use this guide, you will need:

This guide makes the following assumptions:

Upload

We recommend you use any secure method you feel comfortable with to upload the plugin file to the WHMCs installation directory on your server. The following example command is to upload via SSH:

scp BaseKitWHMCsPlugin.zip whmcs-instance:/var/www/whmcs/BaseKitWHMCsPlugin.zip

Installation

Log into your WHMCs server, go to the WHMCs installation directory, and unzip the contents of the plugin file. The following example commands do this via SSH and the unzip command:

$ ssh user@whmcs-instance
$ cd /var/www/whmcs
$ unzip BaseKitWHMCsPlugin.zip

Under the WHMCs root directory you should now see modules/servers/BaseKit and modules/servers/BaseKitAddon directories

Permissions

These commands require that you have the permissions to create files in the WHMCs installation directory, it is recommended that you use the credentials for the correct user rather than relying on sudo.

Commands

If you are unable to execute remote commands on your WHMCs server, you can unzip the plugin file on your computer and manually upload the resulting modules directory to the WHMCs installation directory.

Configuration

  1. Log in to the administrator area of WHMCs
  2. Navigate to System SettingsProducts/ServicesProducts/Services
  3. Create a new Group. You can call this BaseKit, Website builder etc
  4. Create a new Product using the group you just created. This should be named based on the BaseKit package it will contain
  5. On the Details tab tick Require Domain
  6. Switch to the Module Settings tab, then select BaseKit as the Module Name
  7. Fill in the Connection configuration
  8. You must click Save before continuing
  9. Next, fill in the Product configuration – you will get connection errors if you do this before filling in the Connection configuration

Client Area Integration

Goto SetupProducts/ServicesProducts/ServicesBaseKit PluginModule SettingsIntegration Code, follow the instructions for manually editing WHMCs client-area templates.

Connection configuration

Important: If you have more than one Subscription package then you will need to create an instance of the BaseKit module for each package. The settings are the same except the Account Package Ref.

  1. BrandDomain, SubscriptionPackageRef, TrialPackageRef will all be supplied by the BaseKit delivery team. They need to replace the placeholders below:
  2. Base URL: https://rest.BrandDomain
  3. Rest api credentials are supplied by BaseKit
  4. Brand Ref: Supplied by BaseKit
  5. Account Package Ref: SubscriptionPackageRef
  6. Account Free Package: TrialPackageRef
  7. Reseller Ref: leave this blank
  8. Language Code: Choose whichever language you want your customers to default to
  9. Site Type: Responsive
  10. Login URL: https://flow.BrandDomain/login
  11. Username Prefix: enter your company name here, no spaces
  12. Now ensure you click to test the connection and that it is successful

Product configuration

BaseKit Add-On package configuration (e.g. Go Connect Bookings)

  1. Log in to the administrator area of WHMCs
  2. Navigate to System SettingsProducts/ServicesProduct Addons
  3. Click Add New Addon
  4. Give the addon package a name, choose Add-On Feature and select the BaseKitAddon module from the dropdown
  5. Switch to the Module Settings tab, then select BaseKitAddon as the Module Name
  6. Enter the BaseKit add-on package ref into the AddonID field
  7. Switch to the Applicable Products tab and select the existing BaseKit packages you want to offer this add-on for

Gotchas

Domain registration

On ordering a BaseKit package through WHMCs a domain name must be specified with the order.

Domain registration must be enabled on WHMCs for this to appear in the ordering process.

To enable this navigate to System Settings/General Settings and click on the Domains tab. Ensure all 3 Domain Regsitration Options are checked:

Payment

Before clients can use the BaseKit plugin to purchase services, you must ensure you have at least one payment gateway enabled in System SettingsPaymentsPayment Gateways.

Language

If you see text on the module settings page similar to $_LANG['pages']['configuration'] instead of actual sentences, you need to rebuild the language cache by:

The language cache has now been rebuilt. If the country you selected is not the one you want, you can switch back to the correct one immediately.

The BaseKit plugin for WHMCs only provides translations for English. You must either make sure that your default language is set to English in SetupGeneral SettingsLocalisation, or rename the file english.php (in the /var/www/whmcs/modules/servers/BaseKit/langs directory) to the name of your desired language (for example, turkish.php).

Connection problems

Although unlikely, SELinux or the server’s firewall may be blocking ports - contact your system administrator to check this.

Need help?

Our teams are always on hand to assist you. For commercial enquires contact partners@basekit.com, and for technical questions integrations@basekit.com.