Is it possible to delay the chat widget from popping up?

Return to top

8 Comments

  • sum

    Hi,


    I just implemented the same, and it worked well. Thanks for the code. I have faced the issue that the widget is showing when offline. I want to hide the widget when offline. Since we forcefully showing the widget $zopim.livechat.window.show() so that the $zopim.livechat.button.setHideWhenOffline is not working any more.

    Also is there any method to check the status?

     

     

    0
  • Brenda Cardinez

    Hi Sumith,
    To hide the widget when offline, you will just need to make sure that the offline form is deactivated from your Chat Widget settings, Forms tab. Please take note that the chat widget status depends on your Agent Status in the Chat dashboard.
    Hope this helps! Thanks!

    0
  • Giulio Orsi

    Hi, I tried this solution to delay the loading of the chat on the site, it works, the only thing that then shows it open and not closed. There is a way that to show closed chat after loading otherwise it becomes invasive.

    0
  • Shai Sy Dimayuga
    Zendesk Customer Care

    Hi Guilio,

    Hope you are well.

    If you would like to show only "chat button" after delaying the chat widget from showing up, you can then replace the "$zopim.livechat.window.show()" to "$zopim.livechat.button.show()" instead.

    <script type="text/javascript">
    var bool = true;

    $zopim( function() {
    bool = $zopim.livechat.isChatting();

    if(bool==false) {
    $zopim.livechat.hideAll();
    setTimeout(showzopim,60000); //time in milliseconds - 60 seconds = 60000


    function showzopim() {
    $zopim.livechat.button.show()
    }
    }
    });
    </script>
    0
  • Eduardo

    So, the whole thing ends like this on the <HEAD>?

     

    <!-- Start of ghostfiregaming Zendesk Widget script -->
    <script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=XXXXXXX-XXXXX-XXXXXXXXX> </script>
    <script type="text/javascript">
    var bool = true;

    $zopim( function() {
    bool = $zopim.livechat.isChatting();

    if(bool==false) {
    $zopim.livechat.hideAll();
    setTimeout(showzopim,60000); //time in milliseconds - 60 seconds = 60000


    function showzopim() {
    $zopim.livechat.window.show()
    }
    }
    });
    </script>
    <!-- End of ghostfiregaming Zendesk Widget script -->

    0
  • Venn Villanueva

    Hi Eduardo,

    I can see that you have already submitted a ticket about this. I'll go ahead and respond via ticket so we can move forward on your request. Thanks!

    0
  • Sergio Lio

    Hi ricardo,

    would you mind sharing the link here with web widget case? the one you shared is already dead link. seems like broken? or would you mind sharing the code with classic web widget? thank


    Regards,

    0
  • Ricardo Pinto
    Zendesk Digital Resources Team

    Hello Sergio Lio. Sorry for that. I have updated the article. The article's link is Can I delay the Web Widget from popping up?

    0

Please sign in to leave a comment.

Powered by Zendesk