Hello,

I wonder why the same code on different server causes tawk not working?

On both of them, I install original prestashop template - which is belong to prestashop and free:

Is not working on this server:

http://ecommerce.advance-web-studio.com/index.php

Is working on this server:

http://ecommerce.fresway.com/

Can you guess why this code (below) does not work on
http://ecommerce.advance-web-studio.com/index.php which I place it on themes/default-bootstrap/footer.tpl

<!--Start of Tawk.to Script--> <script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/59bf6f14c28eca75e4620a17/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);

    })();

</script> <!--End of Tawk.to Script--> </body> `

Recommended Answers

All 3 Replies

Member Avatar for diafol

Are you using unique embed codes for both sites? I don't think you can have the same embed code for both. In tawk's admin panel you can add additional sites and hence get different embed srcs.

I have tried placing jivochat instead of tawk on another ecommerce to distinguish the chat program:

http://ecommerce.advance-web-studio.com/index.php

It still does not work.

<!-- BEGIN JIVOSITE CODE -->
<script type='text/javascript'>
(function(){ var widget_id = 'CDdH5bEgS5';var d=document;var w=window;function l(){ var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);}if(d.readyState=='complete'){l();}else{if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();
</script>
<!-- END JIVOSITE CODE -->

</body>

Jivochat works well on ecommerce.fresway.com if I install it there.

Member Avatar for diafol

I'm assuming the e-commerce site is your own. Did you follow my suggestion of registering that site in tawk and embedding the right code? I've never used these products but they may check the source of the chatbox vs admin settings so the URL you supply must be right. Your e-commerce site looks like a subdomain. Did you supply that URL or the main domain?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.