Softaculous


Topic : Custom Scripts Issue WHMCS


Posted By: damncreative on May 6, 2019, 2:16 pm
What Works
- My custom wordpress package installs everything as it should and works
- I called this custom script as it's softname wpelementorvip

What Have I Done?
- I have added custom field to it called Script and set the Select Options field to Elementor VIP and as a Drop Down
- I have added my custom script to softaculous_extra to /path/to/whmcs/includes/hooks/ which you can find my php below (it's the correct ID as well)

PHP Code

 $GLOBALS['add_softaculous_scripts'] = array(
                    
10001 => array('name' => 'Elementor VIP',
                                
'softname' => 'wpelementorvip',
                                
'desc' => 'WordPress Elementor VIP Package, filled with licensed pro plugins.',
                                
'ins' => 1,
                                
'cat' => 'blogs',
                                
'type' => 'php',
                                
'ver' => '5.1.1'
                                
)
                            ); 




What Doesn't Work
Upon purchase and after selection of the Drop Down, it installs default wordpress. It does not install my custom script package.

Posted By: damncreative on May 6, 2019, 2:24 pm | Post: 1
Another thing to mention is I have cPanel Extended installed and it has only two options - the list of scripts that are default and then the Configurable Options - any ideas?

Posted By: damncreative on May 6, 2019, 4:14 pm | Post: 2
If you want to use Custom Softaculous Scripts inside of WHMCS and cPanel Extended you need to do the following:

Reference:
https://www.docs.modulesgarden.com/CPanel_Extended_For_WHMCS#Configurable_Options_For_Application_Auto_Install

- Go to Configurable Options
- Create a New Group called Application
- Select your Assigned Products, you can hold shift or CTRL to select them in the list
- Click Add New Configurable Option
- Call it Installation App
- Under Options input the Name of your Custom Script EXACTLY as you have it in Softaculous

It should properly install

Posted By: Brijesh on May 10, 2019, 1:37 pm | Post: 3
Hi,

Glad to know your issue was resolved.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.