Hi there,
I need to integrate a CRM with a Live Chat into my Prestashop.
I have this code and I need to modify it to retrieve user information. How can I do? I'm using Prestashop 1.7
<script>
window.customerlySettings = {
app_id: "3611c5b5",
user_id: "REPLACE WITH YOUR USER ID",// Optional
name: "REPLACE WITH USER NAME",
email: "REPLACE WITH USER EMAIL",
};
!function(){function e(){var e=t.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://widget.customerly.io/widget/3611c5b5";var r=t.getElementsByTagName("script")[0];r.parentNode.insertBefore(e,r)}var r=window,t=document,n=function(){n.c(arguments)};r.customerly_queue=[],n.c=function(e){r.customerly_queue.push(e)},r.customerly=n,r.attachEvent?r.attachEvent("onload",e):r.addEventListener("load",e,!1)}();
</script>
I tried with "$this->context->customer->id_customer" as Customer ID and "$this->context->customer->email" as Customer Email but it doesn't work.
Please help me!