• I am trying to add a zoho API on my website, where if a user/client is logged in and they send a message with zoho chat they won’t have to fill in the fields of the chat; it would automatically do it for them – just because they are logged in.
    I know I need to create a fetch call from my database but I haven’t been able to figure out where to place the API zoho supplied. Any help?

    • This topic was modified 5 years, 2 months ago by estradas.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Thread Starter estradas

    (@estradas)

    I already have the chat installed but I want to offer users that are logged in to simply send a message with the chat and we will automatically see their contact info on our end.
    Zoho explained there is a way to accomplish that with an API fetch call from the db to wordpress.
    This is all they gave me, so im unsure where to place this

    Syntax
    $zoho.salesiq.visitor.name(” < NAME > “);

    Example
    <script>
    $zoho.salesiq.ready=function()
    {
    $zoho.salesiq.visitor.name(“John Smith”);
    }
    </script>

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You’re going to need to write a small plugin to accomplish that, to fetch the data based on the current user (if one is logged in), to load the necessary javascript (and you’ll need to fix it to work with WP’s version of jQuery), and use wp_localize_script() to transfer the user’s name from PHP to javascript. If you read that and think “WTF?”, you should probably hire a developer to write this for you. ?? Check out https://jobs.wordpress.net or visit your local WordPress meetup (check meetup.com) to find one.

    Thread Starter estradas

    (@estradas)

    Thanks a lot, I’ll check that out!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘API call with Zoho SalesIQ chat’ is closed to new replies.