Jump to content

Get details of logged in user


HostingMe

Recommended Posts

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

149374898_Screenshot2021-02-04at22_11_44.thumb.png.c009a5d1f2a7a1d098393be5d67f4dcf.png

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated