livehelperchat icon indicating copy to clipboard operation
livehelperchat copied to clipboard

Widget HTML Online / Offline BUG

Open PeopleInside opened this issue 2 years ago • 2 comments

This BUG has been tested on the demo of live helper chat. I discovered this bug on my website and on my LHC install then tested in the demo and confirmed the issue.

BUG description: Set an online and and offline HTML text (Online text for the online HTML and OFFLINE text for the Offline) will be bugged if the widget status is offline then the widget is updated in the page without user refresh. When the widget is clicked it will show the online form to start a chat but the offline message instead of the online message.

Screenshot: immagine

How to reproduce:

  • In the widget themes edit the default theme under the custom content tab find the field for "Custom html above status/profile body in online mode " and input a text ONLINE
  • In the widget themes edit the default theme under the custom content tab find the field for "Custom html above status/profile body in offline mode " and input a text OFFLINE

Screenshot: immagine

  • Save the theme

  • Now load the user page with the live chat widget, in the case of live helper chat: https://livehelperchat.com Chat should be online and you should see correctly ONLINE HTML text. In the live helper chat you need open the pop up then open the widget to see that text because the pro active invitation override the text.

livescreen

  • Now you need put the department and the operator to be offline and wait the widget is converted to the offline status or you can simply refresh the page.

  • Now put again the operator and department to online mode and wait the widget is refreshed without the page refresh.

Expected results:

  • The status widget when switch from offline to online, when is clicked should show the start chat with the online HTML on top.

Actual results:

  • The status widget when is refreshed without page refresh from offline to online still show the Offline text and never show the ONLINE Text so issues with HTML showed.

livescreen2

Other screen to show better the issue:

livescreen3

So the widget is not correctly refreshed.

PeopleInside avatar Oct 06 '23 10:10 PeopleInside

Just adding some details. On my personal LHC install I set some HTML code to be showed before the chat. This has been setup in theme widget, Text above start chat form fields.

immagine

The good result when the chat is online is:

Screenshot 2023-10-19 121056

The HTML show online time and online status.

When the widget switch to offline a offline HTML message is correctly showed.

Screenshot 2023-10-19 121354

When the widget switch from offline to online the BUG happen: the offline HTML is not hidden and is added to the online HTML correctly showed.

Screenshot 2023-10-19 121731

Note: For the online widget, for add the online chat text I use the field Text above start chat form fields in the theme widget. I tried to remove the HTML from there and put this on the field online HTML but this is showed above the chat logo I have so its a bad visual. I hope with the fix to see just the offline HTML hidden and the Text above start chat form fields still showed when the widget is online :)

PeopleInside avatar Oct 19 '23 10:10 PeopleInside

I hope next coming version of LHC can fix this issue 🎉

PeopleInside avatar Dec 29 '23 11:12 PeopleInside

I hope this issue can be fixed :)

PeopleInside avatar May 05 '24 12:05 PeopleInside

Hi, I updated LHC and cleared cache then I used an incognito mode to test this. When the widget is switched from offline to online the issue still be present the offline text is still showed. https://app.screencast.com/1T9R9wCoHAfhy

PeopleInside avatar May 09 '24 11:05 PeopleInside

Does not happen here :P

remdex avatar May 09 '24 11:05 remdex

Do you checked when widget is turned on from offline without refresh the page? For me also even updating by master and cleaning cache the issue still be present.

PeopleInside avatar May 09 '24 11:05 PeopleInside

Contact via skype and proved that all works :D

remdex avatar May 09 '24 12:05 remdex

Thanks, resolved. The issue was present because the online text was setup in the Text above start chat form fields in the main theme widget edit page. Resolved by moving the online text to the custom content tab, online field in the theme edit.

PeopleInside avatar May 09 '24 12:05 PeopleInside