• Resolved tryabp

    (@tryabp)


    I am trying to implement auto filling of user fields in zobot-salesIQ chatbot as given in API Call SalesIQ chat this post. But i am not getting it right. I am a no-coder person so not able to troubleshoot this issue.

    I have pasted this code just below salesIQ script in body tag.

    <script>
    $zoho.salesiq.ready=function()
    $current_user = wp_get_current_user();
      {
                  $zoho.salesiq.visitor.name("<?php echo $current_user->user_login; ?>");
                  $zoho.salesiq.visitor.email("<?php echo $current_user->user_email; ?>");
                  $zoho.salesiq.visitor.contactnumber("<?php echo $current_user->billing_phone; ?>");
    
      }
    </script>

    I hope salesIQ team will be able to help me with this implementation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author zohosalesiq

    (@zohosalesiq)

    Hello Tryabp,

    The value “<?php echo $current_user->user_login; ?>” shared on the respective post was an example and it’s not the default in WordPress. If you are storing the values like name, email, etc. on your WordPress database and not sure what’s the name of the stored variables, please get in touch with the WordPress team or your web developer to get further assistance.

    Regards,
    Aslam
    Zoho SalesIQ

    Thread Starter tryabp

    (@tryabp)

    Thanks for reply. I will look into it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘API Auto Fill User Fields Script’ is closed to new replies.