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