WHMCS Quick Shortcuts

From Softaculous Wiki
Jump to: navigation, search

Overview

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

Note: This requires Softaculous 5.1.3+

Editing overview.tpl

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.

1. Upload the Softaculous icon to the following path :

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

Soft.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 icon, text 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 below Softaculous Quick Shortcut.png

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