How To Add A Live Chat Widget Before The </body> Tag?

Hello How Can I Correctly Integrate the Live Chat Widget before the tag...

How can I integrate it as how to make an addon?

the Script is:

Thank you so much !

Hello

You can insert directly in file index.tpl

But during update you can lost this changes.

Better to do this by connecting to the index:body hook.

Best regards

Robert

It is not recommended to edit index.tpl file. There is a special index:head_scripts hook for such scripts

Just do not forget to add data-no-defer parameter

https://docs.cs-cart.com/latest/user_guide/look_and_feel/changing_attributes/script_display.html