Use applications for a new product

Overview

You can configure WHMCS products to provision SolusVM applications by setting up custom fields that correspond to the application’s required properties. This document explains how to identify application properties in SolusVM and create matching custom fields in WHMCS.

To provision a SolusVM application through a WHMCS product:

  1. Find necessary properties for the required application. To do this, log in to your SolusVM management node and go to Images > Applications > Edit the application for the necessary application (in this case, Plesk).

    SolusVM application edit screen showing Plesk configuration

  2. In the JSON schema field, find the properties section. In this example the necessary properties are:

    • license
    • domain
    • user
    • email
    • passwd

    JSON schema showing application properties

  3. Some of these properties are required. To check this, find the required section:

    JSON schema showing required properties section

    In this example, the required properties are domain, user, email, and passwd.

  4. Log in to your WHMCS administrator account and create a new product.

  5. In System Settings > Products/Services > the created product > Module Settings, select the necessary application (in this example, Plesk):

    WHMCS product Module Settings showing application selection

  6. Open the Custom Fields tab.

  7. Create custom fields that correspond to the application properties from step 2:

    • Field Name in WHMCS is the same as the property name in SolusVM.
    • Field Type should be Text Box. For passwords (passwd field), Field Type can be Password.
    • Description can be any explanation for the field that you want your client to see in the shopping cart.
    • If the property is required, check the Required Field option.

    The result is:

    WHMCS Custom Fields configuration showing application properties

  8. Click Save Changes.

Clients can now select this product and fill in the necessary fields for application initialization:

WHMCS shopping cart showing application custom fields

The system provisions the application with the values provided by the client during checkout.