HostingMe Posted February 5, 2021 Share Posted February 5, 2021 Hi all, I'm currently using 'Natterly' as my live chat provider which supports adding visitor details direct to the chat widget. Currently I'm using {$clientsdetails.firstname} and {$clientsdetails.email} to pass the information to the widget but what I'm finding is if user 1 is managing users 2 account the chat widget shows users 2 details. What I'd like is the chat widget to show users 1 details which I'm not sure on how to do. This is the full integration code which I'm currently using: var chatbox = new NatterlyChatbox("[Your Site Token Here]") chatbox.visitor.name = '{$clientsdetails.firstname}'; chatbox.visitor.emailAddress = '{$clientsdetails.email}'; chatbox.render(); I've also added a screenshot below which hopefully helps explain what I mean. Any help on this would be appreciated. Thanks in advance. Steve 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 9, 2021 Share Posted February 9, 2021 On 05/02/2021 at 17:35, HostingMe said: Currently I'm using {$clientsdetails.firstname} and {$clientsdetails.email} to pass the information to the widget but what I'm finding is if user 1 is managing users 2 account the chat widget shows users 2 details. i'm assuming user1 is a user and user2 is the client - rather than being 2 separate users. On 05/02/2021 at 17:35, HostingMe said: What I'd like is the chat widget to show users 1 details which I'm not sure on how to do. {$loggedinUser.first_name} and {$loggedinUser.email} should work. 0 Quote Link to comment Share on other sites More sharing options...
HostingMe Posted February 9, 2021 Author Share Posted February 9, 2021 41 minutes ago, brian! said: i'm assuming user1 is a user and user2 is the client - rather than being 2 separate users. {$loggedinUser.first_name} and {$loggedinUser.email} should work. Thanks Brian, worked perfectly. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.