2.3 MOD: Add New Category Name to Category Moved Email
Posted: Fri Sep 30, 2011 5:37 pm
This has been posted in the past but it was buried in an older topic. Here are the updated instructions to make it work in 2.3....
In admin\move_category.php file, just above this text paste
Then under:paste this code:
Then add this line to language\en\emails\category_moved.txt:
In admin\move_category.php file, just above this text
Code: Select all
/*** Need to notify any staff? ***/
Code: Select all
$qry = "SELECT `name` FROM `".$hesk_settings['db_pfix']."categories` WHERE `id`='".$category."'";
$myres = hesk_dbQuery($qry);
$mytmp = hesk_dbFetchAssoc($myres);
$catname = $mytmp['name'];
Code: Select all
$msg = hesk_getEmailMessage('category_moved',$ticket,1);
Code: Select all
$msg=str_replace('%%NEWCAT%%',$catname,$msg);
Code: Select all
New Category: %%NEWCAT%%