WHMCS Quick Shortcuts

Overview

This guide will help you to create a link for Softaculous and WordPress Manager by Softaculous in WHMCS on the Product Details page under Quick Shortcuts section.

Since WHMCS does not provide a direct option to display a custom icon in Quick Shortcuts section, we will need to edit the existing tpl file in the cPanel module.

Add WordPress Icon

Note: This requires Softaculous 5.6.1+

1. Upload the WordPress icon to the following path :

/path/to/whmcs/modules/servers/cpanel/img/wp.png

2. You will need to edit the following file :

/path/to/whmcs/modules/servers/cpanel/templates/overview.tpl

Find the last icon i.e. Awstats in the overview.tpl file and replicate that div and change the icontext and link to the div. E.g. :

<div class="col-sm-3 col-xs-6" id="Softaculous_wp"> 
<a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Softaculous_WordPress" target="_blank"> 
<img src="modules/servers/cpanel/img/wp.png" />WordPress Manager</a> </div> 

We have replaced the following variables :

  • Value for app parameter in href is changed to app=Softaculous_WordPress
  • Icon path has been changed to wp.png
  • Link Text has been changed to WordPress Manager

3. That’s it ! Your users will now find the WordPress icon in their WHMCS Client Panel on Product Details page as in the screenshot above.

Add Softaculous Icon

Note: This requires Softaculous 5.1.3+

1. Upload the Softaculous icon to the following path :

/path/to/whmcs/modules/servers/cpanel/img/softaculous.png

2. You will need to edit the following file :

/path/to/whmcs/modules/servers/cpanel/templates/overview.tpl

Find the last icon i.e. Awstats in the overview.tpl file and replicate that div and change the icontext and link to the div. E.g. :

<div class="col-sm-3 col-xs-6" id="Softaculous"> 
<a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Softaculous_Home" target="_blank">
<img src="modules/servers/cpanel/img/softaculous.png" /> Softaculous </a> </div>

We have replaced the following variables :

  • Value for app parameter in href is changed to app=Softaculous_Home
  • Icon path has been changed to softaculous.png
  • Link Text has been changed to Softaculous

3. That’s it ! Your users will now find the Softaculous icon in their WHMCS Client Panel on Product Details page as in the screenshot above

Issue

If you are redirected to cPanel instead of Softaculous when you click on the Softaculous icon. Please execute the following command on your cPanel server as root

 /usr/local/cpanel/scripts/install_plugin /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/softaculous_plugin.tar.bz2 
Was this helpful to you?