Академический Документы
Профессиональный Документы
Культура Документы
Share by email
Report Abuse
• Username: user@domain.com
Preferred link
Blog Archive
• Validations: Do Not Validate SSL Cert
2012 (4)
November (3)
• Refresh Timeout: 1 minute Configure incoming Server Config With
Gmail (IMAP)...
Customize Vtiger footer
• Email per Page: 25
Change Page Title
October (1)
https://www.vtiger.com/blogs/?p=623
Popular Posts
."</a> | <a
href='http://www.vtiger.com/products/crm/privacy_policy.html'
Please, support the
target='_blank'>".getTranslatedString('LNK_PRIVACY_POLICY')."< vTiger Cookbook
/a></span> $statimage</td></tr></table>"; blog by clicking on
our sponsors ad!
For customizing the page title you have to change the value of the string
"LBL_BROWSER_TITLE".
The string is available in the language file located in /include/language/en_us.lang.php.
(If you are using another language edit the correct language file)
Remember that this part of VTiger CRM does not allow custom field features but you need to
modify database table and source code related.
First of all you need to alter table vtiger_organizationdetails and add field taxcode like this
sample:
$organization_taxcode = decode_html($adb-
>query_result($result,0,'taxcode'));
if (isset($organization_taxcode))
$smarty-
>assign("ORGANIZATIONTAXCODE",$organization_taxcode);
$organization_taxcode = decode_html($adb-
>query_result($result,0,'taxcode'));
if (isset($organization_taxcode))
$smarty->assign("ORGANIZATIONTAXCODE",$organization_taxcode);
//Handling update
else
{
$sql="update vtiger_organizationdetails set organizationname = ?,
address = ?, city = ?, state = ?, code = ?, country = ?, phone = ?,
fax = ?, website = ?, taxcode = ? where organizationname = ?";
$params = array($organization_name, $organization_address,
$organization_city, $organization_state, $organization_code,
$organization_country, $organization_phone, $organization_fax,
$organization_website, $organization_taxcode, $org_name);
}
5)vtigercrm/modules/Settings/add2db.php
if($saveflag=="true")
{
...
$organization_logo=from_html($_REQUEST['organization_logo']);
$organization_taxcode=from_html($_REQUEST['organization_taxcode']);
...
if($org_name=='')
{
$organizationId = $this->db->getUniqueID('vtiger_organizationdetails');
$sql="INSERT INTO vtiger_organizationdetails
(organization_id,organizationname, address, city,
state, code, country, phone, fax, website, logoname, taxcode) values
(?,?,?,?,?,?,?,?,?,?,?)";
$params = array($organizationId,$organization_name,
$organization_address, $organization_city, $organization_state,
$organization_code,
$organization_country, $organization_phone,
$organization_fax, $organization_website, $organization_logoname,
$taxcode);
}
....
Some row below
<tr>
<td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_TAXCODE}
</strong></td>
<td class="small cellText">
<input type="text" name="organization_taxcode"
class="detailedViewTextBox small" value="{$ORGANIZATIONTAXCODE}">
</td>
</tr>
Add custom language translation in file vtigercrm/modules/Settings/language/XXXXXXX
$modelColumnLeft = array(
'logo' => "test/logo/".$resultrow['logoname'],
'summary' =>
decode_html($resultrow['organizationname']) .
"\n".getTranslatedString("LBL_ORGANIZATION_TAXCODE", "Settings")." ".
$resultrow['taxcode']
,'content' => $this->joinValues($addressValues, ' ').
$this->joinValues($additionalCompanyInfo, ' ')
);
Home