Tawk.to integration error

4 months ago
Ok, so we can use Tawk.to in 4.3 version? I didn't even tested to install it yet...
4 months ago
compito wrote:
Ok, so we can use Tawk.to in 4.3 version? I didn't even tested to install it yet...


Yes, you do not need any plugin if you can change the code directly in root_head.cshtml. Place the tawk to script before </body> tag in that file, and then follow to add one line as mentioned below (referenced from the solution provide earlier in this forum post).

Also added following line on https://www.website.com/Admin/Setting/GeneralCommon: SEO SECTION -> Custom <head> tag:

<meta name="referrer" content="no-referrer-when-downgrade">

This should do.

Cheers,
Pranay.
2 months ago
Thanks Pranay.

Let me improvise (a few corrections to) your answer a little further.

Twak.to can be manually integrated into NopCommerce 4.30 by following the below two steps:

1. Edit the _Root.Head.cshmtl
2. Add a Setting in Admin Panel

Edit the _Root.Head.cshtml file
The location of this file may be different for every theme. Some of the examples are given below:

Default Theme: This file would be in the folder:

~\Views\Shared


Nop-Templates Theme (Example: Pavilion): This file would be in the folder:
~\Themes\Pavilion\Views\Shared


Editing the file:
Open the file in any editor, Scroll down all the way and find the </body> tag.
Goto tawk.to account, copy the javascript for the live chat window. Paste this copied javascript code before the </body> tag.
Save the file and deploy it to your server.

Add a Setting in Admin Panel
Login into Admin Panel.
Navigate to Configuration -> General Settings
Scroll down and find the Section "SEO"
In this section, you will see the "Custom <head> tag" text box.
Copy the following into the text box and save the settings:
<meta name="referrer" content="no-referrer-when-downgrade">


You are good to go!
2 months ago
mr.mourya wrote:
Default Theme: This file would be in the folder:

~\Views\Shared

Thanks for sharing with community but you should point that core files SHOULD NOT be edited.
If anyone is using Default Clean theme, from directory
~\Views\Shared

should copy _Root.Head.cshmtl and paste it to
~\Themes\DefaultClean\Views\Shared

All modification may be done at this place.

Regards,
Tom
2 months ago
Thanks 👍