New Thread For Vendor

Currently a vendor cannot start communication thread to contact with customer . i want to add functionality for vendor so he can also start communication just like customer can do. so how can i achieve this??

Check the "create_thread" mode here

app/addons/vendor_communication/controllers/frontend/vendor_communication.post.php

I think, you can use the same functions in the vendor area

i already tried this but the problem i am facing is that the messages are successfully saved in the database but new thread is not being created and message is not delivered to the customer?

<a class="cm-post" href="vendor.php?dispatch=vendor_communication.create_thread&
return_url=vendor.php?dispatch=vendor_communication.threads&
communication_type=vendor_to_customer&
timeline=''&
thread[object_id]={$order_info.order_id}&
thread[object_type]=O&
thread[subject]='Request Modifications'&thread[company_id]={$order_info.company_id}&
thread[message]=''&
thread[communication_type]='vendor_to_customer'
">Send Requesta>

Sorry, I cannot help you without detailed code examination. May be someone else here has good experience with this module

i did it but can you help me with this problem i am facing i want to send the input box value along with the cm-post.

<input id="timeline_box" name="order_timeline" value={$order_info.order_timeline}>
<a class="cm-post" href="vendor.php?dispatch=vendor_communication.create_thread&
return_url=vendor.php?dispatch=vendor_communication.threads&
thread[message_type]=request_timeline&
thread[request_value]=------value-------&
communication_type=vendor_to_customer&
thread[object_id]={$order_info.order_id}&
thread[object_type]=O&
thread[subject]=Request Modifications&
thread[company_id]={$order_info.company_id}&
thread[message]=''&
thread[communication_type]=vendor_to_customer
">Send Requesta>

or is this ajax is the same as cm-post request in upper message??

$("#send_btn").click( function () {
$.ceAjax('request',
'vendor.php?dispatch=vendor_communication.create_thread', {
method : 'POST',
data: {
'return_url' : 'vendor.php?dispatch=vendor_communication.threads',
'communication_type' : 'customer_to_vendor',
'thread' : {
'object_id' : {$order_info.order_id},
'object_type' : 'O',
'subject' : 'Request Modifications',
'company_id' : {$order_info.company_id},
'message' : '',
'communication_type' : 'customer_to_vendor',
'request_timeline' : $('#timeline_box').value
},
},
callback : function(data) {
console.log(data);
}
});
});