WHMCS Addon Modules are a new way for third-party developers and service providers to extend the functionality of WHMCS, providing out-of-the-box solutions to common hosting problems. For example a WHMCS plugin that connects your server OS and terminal monitoring to our servers, or an Automated Application Installation tool to help you manage all of your web apps in one place, or even a service that allows you to add additional features and support options to your client area.
The Cloudflare WHMCS module is a fantastic plugin that allows Cloudflare users to add and manage their clients’ websites using WHMCS. It is for all Cloudflare users that have a Cloudflare account (Free, Pro, Business, Enterprise). It is a fantastic functionality that allows you to automatically add websites to your Cloudflare account from WHMCS. When a website is joined to Cloudflare, it is protected and accelerated.
With a consumer who orders a product, our module will operate in two modes. Customers can have this configuration set by the website administrator.
- If a customer wants to add a new website to their Cloudflare account
- If a consumer wants to visit a website that has already been connected to Cloudflare,
The website owner has two options, as we provide two types of packages. As stated below:
- If a consumer orders a product and wants to add their own website to Cloudflare. The website owner must use our WHMCS Cloudflare provisioning module, which is offered as an add-on module. Furthermore, the website owner can decide on user permissions from the admin.
- If a customer who will order a product wants to add a website to Cloudflare, or if a client who has purchased from a website wants to add a website to Cloudflare. The website owner chose our admin area add-on module with a product extension. When a customer purchases an addition, their website is automatically added to Cloudflare.
Setup Guide for Module
Steps and procedures for installing a server module and an admin area addon.
1. Upload server module to modules->servers. Upload admin area addon module to modules-> addons
2. Let’s configure the server module. Log in as admin to WHMCS.
3. Go to setup->products/services, Create a product, under Module settings, Select cloudflarev4 Module.
3.1 Enter License key.
3.2 Fill Cloudflare API URL: https://api.cloudflare.com/client/v4/
3.3 Enter your Cloudflare account username.
3.4 Enter the password of your Cloudflare account.
3.5 Enter Cloudflare API key.
3.6 Choose a custom field for the domain to input when a consumer visits your site and selects a website of their choosing.
3.7 With extreme caution, Cloudflare, a website, If you already have a Cloudflare account and have added your clients’ websites to Cloudflare. You wish to provide Cloudflare services to your clientele at this point. Then you can choose this checkbox.
4. Cloudflare may only be added by registered domain customers.
The module will not function if the domain is incorrect. As a result, the buyer can only proceed with a legitimate domain.
5. Go to setup-> Addon Modules. Activate cloudflarev4 module. Enter details.
6. Following successful activation, navigate to Addons and pick Cloudflare v4.
7. This will bring up a list of all the websites you’ve added to Cloudflare.
8. The “Account” tab allows you to change your Cloudflare account’s account data.
9. The “Settings” tab allows you to manage tabs for your customers. Which you want to allow and prevent for your consumers.
Steps and procedures for installing admin area add-ons and product extensions
1. Upload the admin area addon to the modules->addons directory.
2. After the addon has been successfully activated. Go to setup->products/services.
3. Create a product for Cloudflare; a domain must be necessary for the product to be generated.
4. Navigate to Products/Services->Product Addons. Create a product for Cloudflare and attach it to the product.
5. Now navigate to Addons->Cloudflare V4. Click on Add-ons to open a new tab.
6. If you want your extension to add websites to Cloudflare, choose addon in the first option. However, if you already have websites in your Cloudflare account, choose addon in the second option.
7. If your customer already uses WHMCS services. This module is likewise extremely simple to set up. Despite the fact that the websites are already in the Cloudflare account.
8. For WHMCS versions 5 and below, Go to templates->activeTemplateDirectory->clientareaproductdetails.tpl and insert the cloudflare link.
{if $cloudflare}<li><a href=”index.php?m=cloudflarev4&zone={$cloudflare}&serviceid={$smarty.get.id}”
data-toggle=”tab”>Cloudflare</a>{/if}
9. Add the language variable in your language file like : whmcsdir/lang/english.php
$_LANG[‘cloudflare_heading’] = “Cloudflare”;
$_LANG[‘cloudflare_item’] = “Manage Cloudflare”;
Note: No need to add anything in WHMCS 6 version.