Have chats launched on the same web page open different chat windows

I would like to have my web page open different chat window based on user input. I have 2 live chat buttons that are asking the visitor to select "Live chat language preference" one for English and another for Spanish and I would like to have each button open correctly customized chat window.

 

 

 

 

  1. Please install invisible button code on the web page first. Find it in Admin Panel->Installation->Live chat button->For websites->invisible Button (bottom of the button selection page)
  2. Add this javascript function to the web page (change ACCOUNTID to the NUMERIC portion of your LiveHelpNow account #):
    <script type="text/javascript">
    function openLiveChat(windowid){
    var wleft = (screen.width - 580-32) / 2;var wtop = (screen.height - 420 - 96) / 2;
    window.open('http://www.livehelpnow.net/lhn/livechatvisitor.aspx?lhnid=ACCOUNTID&zzwindow=' + windowid, 'lhnchat', 'left=' + wleft + ',top=' + wtop +',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');
    }
    </script>
  3. Go to Admin Panel->Customization->Chat window and record all Window # setup for your account
  4. Now you may instruct any element on your web page to launch chat and specify which window to connect it with. Here's an example:
    <a href="#" onclick="openLiveChat(999);return false;">Live Chat</a>, <a href="#" onclick="openLiveChat(998);return false;">Chat en vivo</a>
    Where 999 is the English window and 998 is Spanish wndow you would like to connect the customer with.

Related articles