admin管理员组文章数量:1122832
Currently using a Javascript API for he first time to our woocommerce site. We have installed a chat (Social Intents) which provided us with a code to collect data from the person chatting with us. The shop is for logged in members only, so the info is already collected once the customer registers and logs in.
<script type="text/javascript">
function onSIApiReady()
{
//Will display the tab once the scripts have loaded
SI_API.setChatInfo('visitor name','[email protected]','(123) 123-1234',
'Marketing','I have a question about your products');
};
</script>
In backend it says "visitor name" and "[email protected]" aswell, so my question is: what do I have to write instead to make it fetch the correct data from the user and not just copy whats in the code?
本文标签: How do I expose the current logged in users nameetc to javascript
版权声明:本文标题:How do I expose the current logged in users nameetc to javascript? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736301969a1931365.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论