{"id":7736,"date":"2019-10-21T12:02:12","date_gmt":"2019-10-21T06:32:12","guid":{"rendered":"https:\/\/www.hiddentechies.com\/blog\/?p=7736"},"modified":"2020-10-08T19:41:18","modified_gmt":"2020-10-08T14:11:18","slug":"add-live-chat-code-prestashop","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/prestashop\/add-live-chat-code-prestashop\/","title":{"rendered":"How to add live chat code in PrestaShop 1.7?"},"content":{"rendered":"<p>In this post I am going to explain how to add live chat code in prestashop 1.7.<\/p>\n<p>In order to add your live chat code at footer, please open the below files from your current template\/theme.<\/p>\n<p>For example classic template footer.tpl file path.<\/p>\n<p>[PrestaShop Root Directory]\/themes\/classic\/templates\/_partials\/footer.tpl<\/p>\n<p>Please check your template name and find the footer.tpl file according to your template name.<\/p>\n<p>You can add any live chat code given by live chat provider. For example I have taken example of tawk.to code.<\/p>\n<p>Now, at the end of current code in footer.tpl file include your live chat code like below.<\/p>\n<pre class=\"lang:default decode:true \">&lt;!--Start of Tawk.to Script--&gt;\r\n&lt;script type=\"text\/javascript\"&gt;\r\nvar Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();\r\n(function(){\r\nvar s1=document.createElement(\"script\"),s0=document.getElementsByTagName(\"script\")[0];\r\ns1.async=true;\r\ns1.src='XXXXXXXXXXX';\r\ns1.charset='UTF-8';\r\ns1.setAttribute('crossorigin','*');\r\ns0.parentNode.insertBefore(s1,s0);\r\n})();\r\n&lt;\/script&gt;\r\n&lt;!--End of Tawk.to Script--&gt;<\/pre>\n<p>Save changes in this file, refresh your home page and check the changes:<\/p>\n<p>Thats it!<\/p>\n<div class=\"angwp_12010 _ning_cont _ning_hidden _ning_outer _align_center responsive\" data-size=\"custom\" data-bid=\"12010\" data-aid=\"0\" style=\"max-width:800px; width:100%;height:inherit;\"><div class=\"_ning_label _left\" style=\"\"><\/div><div class=\"_ning_inner\" style=\"\"><a href=\"https:\/\/www.hiddentechies.com\/blog?_dnlink=12010&t=1779049461\" class=\"strack_cli _ning_link\" target=\"_blank\">&nbsp;<\/a><div class=\"_ning_elmt\"><img decoding=\"async\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/angwp\/items\/12010\/Banner-2.png\" \/><\/div><\/div><\/div><div class=\"clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>In this post I am going to explain how to add live chat code in prestashop 1.7. In order to add your live chat code at footer, please open the below files from your current template\/theme. For example classic template footer.tpl file path. [PrestaShop Root Directory]\/themes\/classic\/templates\/_partials\/footer.tpl Please check your template name and find the footer.tpl&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/prestashop\/add-live-chat-code-prestashop\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":1,"featured_media":7835,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[221,222,2139,2],"tags":[313,329,586],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/7736"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=7736"}],"version-history":[{"count":2,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/7736\/revisions"}],"predecessor-version":[{"id":7740,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/7736\/revisions\/7740"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/7835"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=7736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=7736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=7736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}