Hi everyone,
I have change the name of the module Contract to Sales Order in my CRM via the Panel on the admin board. When I assign a user to a sale order, the user gets a notification via email but the name of the module is wrong (Should be Sales Order)
->Administrator has assigned a(n) Contracts to Username.
You may review this Contracts - > URL
I have copied the include\language\en_us.notify_template.html to custom\include\language\en_us.notify_template.html and i have done the change in the original folder too just to see if it was taking the right file. The change doesnāt seem to take effect even tought i did a quick repair and rebuild of the CRM.Āø
Hereās what I found so far
1.
The function in include\utils.php is supose the get the new custom template but it is not doing anything (my language is en_us)
function get_notify_template_file($language)
{
/*
* Order of operation:
* 1) custom version of specified language
* 2) stock version of specified language
* 3) custom version of en_us template
* 4) stock en_us template
*/
// set $file to the base code template so it's set if none of the conditions pass
$file = 'include/language/en_us.notify_template.html';
if (file_exists("custom/include/language/{$language}.notify_template.html")) {
$file = "custom/include/language/{$language}.notify_template.html";
} elseif (file_exists("include/language/{$language}.notify_template.html")) {
$file = "include/language/{$language}.notify_template.html";
} elseif (file_exists('custom/include/language/en_us.notify_template.html')) {
$file = 'custom/include/language/en_us.notify_template.html';
}
return $file;
}
2
If I check all the other module, they all have the function āset_body_notificationā like the one in Leads.php but contract dont have it.
The tag are putting the right value in the email but im not able to find where it is changing because it doesnāt have that specific function.
Should i put AOS_Contract.php in custom directory even tough i made no change to the file ?
public function set_notification_body($xtpl, $lead)
{
global $app_list_strings;
global $locale;
$xtpl->assign("LEAD_NAME", $locale->getLocaleFormattedName($lead->first_name, $lead->last_name, $lead->salutation));
$xtpl->assign("LEAD_SOURCE", (isset($lead->lead_source) ? $app_list_strings['lead_source_dom'][$lead->lead_source] : ""));
$xtpl->assign("LEAD_STATUS", (isset($lead->status)? $app_list_strings['lead_status_dom'][$lead->status]:""));
$xtpl->assign("LEAD_DESCRIPTION", $lead->description);
return $xtpl;
}
Does anyone know what Iām missing ?