NOTICE: Our WHMCS Addons are discontinued and not supported anymore.
Most of the addons are now released for free in github - https://github.com/jetserver
You can download them from GitHub and conribute your changes ! :)
First, you will need to login to your client area and download your copy of “WHMCS Order Notes To Ticket“.
From the client’s area left menu click “Services” -> “My Services“. Open the “View Details” box by click the arrow on the right, and click “Downloads“, in the following screen click the “Download” link.
Unzip the file, and edit it with a simple code editor (notepad++ is recommended). Set your desired ticket department, admin user and more. (example below) Upload it to your WHMCS hooks folder (“includes/hooks“).
That’s all !
Code examples –
In the given example, a ticket will be opened for deparment id “2”, under a user name “apiuser” with a “Low” priority. The ticket subject & pre-message are set to default.
$output['apiuser'] = 'apiuser'; $output['ticket_subject'] = $_LANG['ordernotessubject']; $output['ticket_pre_message'] = $_LANG['ordernotespretext']; $output['ticket_priority'] = 'Low'; $output['ticket_department'] = '2'; $output['stop_email_to_client'] = false;
Same code with changed subject & pre-message will be as follows –
$output['apiuser'] = 'apiuser'; $output['ticket_subject'] = 'This is a new subject'; $output['ticket_pre_message'] = 'This is a new pre-message'; $output['ticket_priority'] = 'Low'; $output['ticket_department'] = '2'; $output['stop_email_to_client'] = false;
* It is recommended to create a special admin user only for API tasks.