Hide chat completely (in widget) when offline

A feature where it is possible in the settings to show/hide chat icon inside the website widget when all agents are offline.

4replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Thank you for your suggestion Eric, sounds like a great feature for us to look in to. 

    In the meantime we have a few options for you that might help you a little to work around this:

    1. Manually deactivate the Chat within the widget after the opening hours. 

    2. Use the JavaScript API (developers.trengo.com) to completely hide the widget when all agents are offline.

    3. If you don't want to provide website visitors the ability to chat outside the opening hours, you can choose to disable the feature "Show always as available". When this feature is disabled and there are no agents online, the chat will be transformed into a contact form. 

    Like 1
  • Is there an update for this one? Or do we still have to use the Javascript API for this?

    Like
  • BTW for people that are looking for a working script:

     

    <script type="text/javascript">
    window.Trengo = window.Trengo || {};
    window.Trengo.render = false;
    
    window.Trengo.key = 'key';
    (function(d, script, t) {
        script = d.createElement('script');
        script.type = 'text/javascript';
        script.async = true;
        script.src = 'https://static.widget.trengo.eu/embed.js';
        d.getElementsByTagName('head')[0].appendChild(script);
    }(document));
    
    window.Trengo.on_status_online = function() {
        window.Trengo.Api.Widget.render();
      }
    </script>
    Like 2
  • It is still the Javascript add-on. Thanks for sharing Tim! 

    Like
Like4 Follow
  • 4 Likes
  • 8 mths agoLast active
  • 4Replies
  • 54Views
  • 3 Following