Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Requirement:
Website has different pages, each one needs it's own operator and it's own widget. (i.e pages A and B).
Issue:
I made it work using one department for each user, and an identifier to avoid open chat in page A to load in page B. (i.e page A operator,department and identifier 1, page B operator,department and identifier 2).
Updated to last version, with widget v2, now it isn't working (i mean, open chat in page A loads in pages B and C...)
I'll be glad to know how can i achieve this. If it's possible without having to create a department for each user, so much better (the less complex, the better).
Thanks in advance
Last edited by caminomaster (2020-04-15 19:51:10)
Offline
Now we had this issue!
Offline
Sorry,
But I really don't understand your workflow
Offline
In simple words, imagine i need to do like in
https://livehelperchat.com/how-do-i-con … -246a.html
But for different pages, same domain. (Each page has it's own operator)
Pic i showed above is strangely showing operator window inside embedded widget!
Last edited by caminomaster (2020-04-16 08:44:20)
Offline
Hi caminomaster,
I think remdex for help you need to have steps to replicate what you are reporting.
You should also try to see if you are able to reproduce with the demo https://livehelperchat.com/demo-12c.html
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline
Well, once invitation is matched it's always kept the same. It was even in the old widget version.
If you want just to assign to different oprator once chat is started you can just pass operator id directly.
Offline
These are two demo pages:
https://eos.caminomaster.co/agentes/mia/
https://eos.caminomaster.co/agentes/sara/
Each one has its own operator.
Visitor should be able to talk with each one separately,
Offline
Page mia you create department mia assigned to mia operator than embed code and in department selection (embed code) you select only mia.
This embed code should be inserted in the mia page.
Follow the same process for the sara page by replacing all mia steps with sara.
If you generate embed code for a single department is no possible the widget chat load also in other page, i think.
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline
Hi,
Once chat session is started it continues page over page. That's intended behavior. As I see you are passing parameter which is fine pending chat should be assigned only to selected department/operator.
If you want that on page refresh session would be lost and new chat should be started you can just pass "fresh" parameter also you can find it in documentation.
Offline
Thanks to you for each reply.
I've checked my settings (there was a little dept. assignment error), re tested again, finding that:
Page embed code (legacy) works fine, each chat loads on it's own page/department at same time, as PeopleInside guessed. (both in v3.30 and v3.23, where it worked for me before).
But with Widget embed code (new) loads one chat across all pages.
Facts given, i can say it's a bug on new version, and i guess it can be fixed.
Last edited by caminomaster (2020-04-17 08:39:42)
Offline
Hi, you maybe need the steps for reproduce the suspect bug.
Also be sure to be able to reproduce with the demo.
You need to demonstrate to remdex with the steps to replicate.
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline
Steps to recreate issue:
Create departments A and B, each one:
hidden: true,
auto assignment active.
Create operators Ana - assigned to A, and Betty - assigned to B.
CASE A:
Generate page embed LEGACY codes:
one with Ana, dept. A
other with Betty, dept. B
Embed codes in pages of same domain.
-> Each one should work separated, at same time.
CASE B:
Generate same codes, but with NEW (React) option.
-> Same chat will load in every page.
(can't test it in demo, since there's no operator role available)
Last edited by caminomaster (2020-04-17 09:09:55)
Offline
Thanks caminomaster,
I'M sure remdex will see and update you in the next days.
If there is a bug should be fixed or just reported on GitHub.
Have a nice day
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline
It's intended behaviour and won't be changed. You can pass https://doc.livehelperchat.com/docs/jav … pt-options
fresh : true
And it won't save chat in cookie so each page will have it's own chat
Offline
Thanks, Remdex.
In fact, what we don't want is to lose chat on page refresh or tab close.
I'm glad to tell you i've achieved this through template, changing session storage vars
I changed cookie path too just in case, but it seems it prefers session over cookies... (in fact, all what i wanted could be achieved just using cookie path, for each page)
Last edited by caminomaster (2020-04-20 11:56:42)
Offline
Hi,
That's not bad idea, perhaps need to add argument to javascritp options
Offline
Implemented. See cookie_per_page per page argument
Offline
That's nice
Will it work just for v2 widget, or in embed legacy too?
Using legacy embed i've seen it uses sessionStorage instead cookies (maybe i'll need to set cookie time to make it persistent)
Last edited by caminomaster (2020-04-22 13:00:14)
Offline
Only with new widget as argument is for new widget.
Offline
I've updated lhc to 3.33.
Now testing new widget with cookie_per_page:true but page reload resets chat.
Also, prefill field is getting data but hidden:true is not working.
P.S: How can I add custom translation preventing it to be overriden on upgrade?
Offline
1. Make sure you have only one cookie on page lhc_per
2. In 3.33v there is now option to hide if prefilled for back office defined fields.
3. Read documentationhow to override templates
That's all I can help.
Offline
I want to allow this:
Visitor can start a chat even if department isn't online (e-mail not required)
when operator gets online, chat is already assigned to him, so he can reply to visitor. (assumimg visitor still have chat open)
What currently happens:
visitor sends message and gets a "Thank you for your feedback..." message
Operator has not pending chats when logged in, needs admin to transfer chat to him
Last edited by caminomaster (2020-04-28 05:12:27)
Offline
See operator argument
https://doc.livehelperchat.com/docs/jav … -arguments
Offline
In fact i'm using operator id as js argument, but it doesn't work if operator offline, when he gets online has no messages pending nor assigned.
On the other hand, I want visitor to open chat anyway, getting chat open awaiting response, instead of getting a 'thank you' message. How can I achiveve this?
Offline
After this operator also should be assigned properly.
https://doc.livehelperchat.com/docs/dep … line-hours
Offline