Start a conversation

Changing the Default Department in Live Chat Window

Overview

 

By default, the department in the Live Chat window is sorted according to the 'DepartmentID' value, which cannot be changed.

To override the default sort order, you need to change the chatdepartmentlist template content. This article provides the steps to change the chatdepartmentlist template content.

 


 

Process

 

To change the chatdepartmentlist template, follow these steps:

  1. Go to the Admin CP > Templates> Templates> Live support.

    mceclip0.png

  2. In the Live support template group, select the chatdepartmentlist template.

    mceclip1.png

  3. Replace the content of the template with text below:

    <select name="departmentid" class="swiftselect" >

    <{foreach key=key item=_item from=$_departmentStatusContainer[online]}>

    <option <{if $_setDepartmentID == $_item[departmentid]}> <{/if}> value='<{$_item[departmentid]}>' class='deponline'><{$_item[displaytitle]}> - <{$_language[online]}></option>

    <{/foreach}>

    <{foreach key=key item=_item from=$_departmentStatusContainer[offline]}>

    <option <{if $_setDepartmentID == $_item[departmentid]}> <{/if}> value='<{$_item[departmentid]}>' class='depoffline'><{$_item[displaytitle]}> - <{$_language[offline]}></option>

    <{/foreach}>

    </select>
  4. Click the Save button when the changes have been made.

    mceclip2.png

 

Back to top

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments