WHMCS Licensing Module – All Products

Overview

Do you want to Resell licenses of Softaculous and Softaculous products from WHMCS ? 
This guide will help you to setup WHMCS licensing module to resell Licenses. Setting this up is very easy.

Note : Currently Softaculous products like Softaculous , Webuzo, Virtualizor, Backuply Server and SitePad are supported in this module.

Note : You will need Softaculous NOC account to use this hook, because the API can be used only by NOCs. You can register as a NOC partner here

Download and Upload

For WHMCS 7.2+ 
Download the Module here File:softaculous_all_products.zip

Unzip it and upload the files softaculous_all_products.php and noc_api.inc to the following path

/path/to/whmcs/modules/servers/softaculous_all_products/

Configuring Product

Go to WHMCS admin panel -> Setup -> Products/Services. Create a new product.

  • Fill in Product details like Name, Description, Product Group, etc
  • Under Module Settings tab fill in the following details
    Module Name : Softaculous_all_products
    Softaculous Username : USERNAME of your NOC account
    Softaculous Password : Password of your NOC account
    Softaculous Product : Select the product you want to sell through this module.
    Product Server Type : VPS/Dedicated choose which type of license should be issued. If you would like the user to choose the server type choose “Use Configurable Options” and assign the Configurable option which you will create in the next step.
    Similarly, you can setup for other Products by changing the value of Softaculous Product to Webuzo, Virtualizor, etc, and the other required options like the “Server Type”, “Number of VPS” related to the product will available for you to choose from.
    Also choose when the product setup should be done i.e. after payment is received or after manually approving the order.
Module Settings of WHMCS licensing Module for Softaculous all products
Module Settings of WHMCS licensing Module for Softaculous all products
  • Under Custom Fields tab create a custom field with the name “License IP” as below
Product – Custom Field

Adding Configurable Option

NOTE : Skip this step, if want to setup two separate products (i.e. VPS and Dedicated) and don’t want to ask your users to choose the server type and or if you want to sell Backuply Server or Sitepad, as it is not applicable for them.

  • We need this option to ask the user if they want VPS or Dedicated server license.
  • First go to WHMCS admin panel -> Setup -> Products/Services -> Configurable Options
  • Now create a Group or edit the existing group (Make sure that you have selected your product while adding the group).
  • Now click on the Add New Configurable Option button.
  • You will get a form similar to the below image.
  • Fill in the Option Name as per the product you are selling : Softaculous Server Type / Webuzo Server Type / Virtualizor License Type
  • Fill the Options as per the product and license type you are selling :
    • For Softaculous :
      • Dedicated
      • VPS
    • For Webuzo :
      • Personal Cloud
      • Personal Dedicated
      • Mini Cloud
      • Mini Dedicated
      • Professional Cloud
      • Professional Dedicated
      • Business Cloud
      • Business Dedicated
    • For Virtualizor :
      • Premium
      • Premium + Backuply
      • Professional
      • Professional + Backuply
  • If you are selling Virtualizor licenses you might need to setup an additional Option called Virtualizor Number of VPS and set the options as the number of VPS you want the user to be able to create. Eg: 1,2,3,4,5,6,7,8
    You can also set unlimited as an option for the user to select.

NOTE : The above values should be the same as shown above i.e. Softaculous Server Type, Dedicated and VPS. If the values are not as per this guide the module might not work properly. You can set the pricing as you wish. 

Configurable option of softaculous all product licensing module for whmcs
Configurable option of softaculous all product licensing module for whmcs

Editing Variables

This module allows you to customize some variables in softaculous_all_mod_extra.php

Billing Period

$GLOBALS['softaculous_mod_conf']['billing_period'] = '';

By default the billing cycle is detected for the WHMCS order being created and the same is used for the Softaculous license period. If the detection fails the default value is 1M i.e. Monthly. However if you would like to overwrite the billing cycle you can define the above variable.

This variable allows you to choose the period to extend for Softaculous license when the WHMCS product service is CREATED and RENEWED. Default is 1M i.e. 1 month if you do not specify this variable. You can set the period to extend as per your desire 
Possible values : 
1M = 1 month 
3M = 3 months 
6M = 6 months 
1Y = 1 year 
2Y = 2 years 
3Y = 3 years

Cancel Softaculous license when service is suspended

$GLOBALS['softaculous_mod_conf']['cancel_on_suspension'] = '';

By default the Softaculous license is not cancelled when a WHMCS service is suspended. However if you would like cancel the Softaculous license when WHMCS service is suspended you can set the above variable as 1.

Testing the Setup

Place an Order

You can test the setup by making a DUMMY Order and going to the Manage Orders page.

Manage Order

Run Module Create

Module Create

Click on the Create button to run the create module function for the product.

That’s it !
You will get a success message if the module is created successfully.

You can login to Softaculous Client Center and verify that the license was issued with the correct details.

Similarly you can test the Suspend, Unsuspend, Terminate, View License commands.

  • In case of Suspend the Auto Renewals of the license will be cancelled (if any).
  • In case of Terminate the license will be cancelled and if the license was issued less than 7 days ago the transaction will be refunded.
  • In case of View License you will be redirected to Softaculous Client Center.

Edit IP

  • Users can also Edit the IP from the Product details page.
  • Enter the New IP and click on Change IP button.
  • The IP will be changed in the Softaculous records.
Change License IP

Support

If you need any assistance then please contact Softaculous Support.

Was this helpful to you?