By default Our CRM ships with 5 predefined statuses, Not Started, In Progress, On Hold, Cancelled, Finished but you can inject new statuses with simple action hook to fit for your needs.
We assume that you have some basic knowledge of reading php code for this article but wont be that hard if you don’t have. You can just copy and paste the code and adjust the keys for your needs (see below keys explanation).
In this example you will add 1 new project status with name Planning
In application/helpers create file my_functions_helper.php and add the following code:
<?php
hooks()->add_filter('before_get_project_statuses','my_add_custom_project_status');
function my_add_custom_project_status($current_statuses){
// Push new status to the current statuses
$current_statuses[] = array(
'id'=>50, // new status with id 50
'color'=>'#989898',
'name'=>'Planning',
'order'=>10,
'filter_default'=>true, // true or false
);
// Return the statuses
return $current_statuses;
}
After you adjust the code to fit for your needs save the file my_functions_helper.php and you will be able to see your new project status.