<div dir="ltr">or create php file in main vtiger directory, paste following code (changing invoice to <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Quotes) and fire it in browser:</span><div><p>
<font face="SimSun"><font style="font-size:10pt"><?php</font></font></p>
<p><font face="SimSun"><font style="font-size:10pt">require_once
'vtlib/Vtiger/Module.php';</font></font></p>
<p><font face="SimSun"><font style="font-size:10pt">require_once
'modules/ModComments/ModComments.php';</font></font></p>
<p><font face="SimSun"><font style="font-size:10pt">$commentsModule
= Vtiger_Module::getInstance('ModComments');</font></font></p>
<p><font face="SimSun"><font style="font-size:10pt">$fieldInstance
= Vtiger_Field::getInstance('related_to', $commentsModule);</font></font></p>
<p><font face="SimSun"><font style="font-size:10pt">$fieldInstance->setRelatedModules(array('Invoice'));//
Give the Module name for which you want to add comment</font></font></p>
<p><font face="SimSun"><font style="font-size:10pt">$detailviewblock
= ModComments::addWidgetTo('Invoice');//Give the Module name for
which you want to add comment</font></font></p>
<p><font face="SimSun"><font style="font-size:10pt">echo
"Comments have been added for Invoice Module";</font></font></p>
<p><font face="SimSun"><font style="font-size:10pt">?></font></font></p></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Siam Translations LLP<br><div><a href="http://www.siam-translations.com" target="_blank">www.siam-translations.com</a></div>
<br><div>This message contains confidential information and
is intended for [Recipient]. If you are not the intended recipient you
are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited.
E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message,
which arise as a result of e-mail transmission. If verification is required
please request a hard-copy version. <br>
<br></div></div></div>
<br><br><div class="gmail_quote">On Mon, Jul 7, 2014 at 8:32 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On 07/07/14 14:14, Michael Lockwood wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We are wanting to be able to add Comments to Quotes in vTiger just like<br>
other modules (Opportunities, Contacts, etc). Is there a way to do this<br>
in vTiger 6?<br>
</blockquote>
<br></div>
Same as with 5.4.0<br>
<br>
Use the vtlib API:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
/*** Comments Block ***/<br>
// Link to modComments Module<br>
$modComments = Vtiger_Module::getInstance('<u></u>ModComments');<br>
$field_relatedTo = Vtiger_Field::getInstance('<u></u>related_to', $modComments);<br>
$field_relatedTo-><u></u>setRelatedModules(array('<u></u>Quotes'));<br>
$detailviewblock = ModComments::addWidgetTo('<u></u>Quotes');<br>
</blockquote>
<br>
<br>
<br>
HTH<br>
<br>
Al<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>