View Single Post
  #2  
Old 02-26-2017, 10:54 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Want to add code in <head> section in X-Cart 5

You should create a custom module having the following Twig template:
Code:
{## # @ListChild (list="head", weight="5000") #} <!-- BEGIN chatstack.com Live Chat HTML Code --> <script type="text/javascript"> var Chatstack = { server: 'chat.soft-reseller.com' }; (function(d, undefined) { // JavaScript Chatstack.e = []; Chatstack.ready = function (c) { Chatstack.e.push(c); } var b = d.createElement('script'); b.type = 'text/javascript'; b.async = true; b.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + Chatstack.server + '/livehelp/scripts/js.min.js'; var s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(b, s); })(document); </script> <!-- END chatstack.com Live Chat HTML Code -->

This should add your custom script into the header part of the page.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote