Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Javascript Applications

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-26-2017, 10:26 AM
 
superdave144 superdave144 is offline
 

Advanced Member
  
Join Date: Sep 2015
Posts: 77
 

Default Javascript Applications

I have a few applications that I would like to run that are javascript. In the past I have edited the footer twig and added the code directly. However this has to be reapplied every time there is an update to X-Cart. Is it possible to add a 3rd party script somewhere that will run on every page, that isn't a custom module, and doesn't have to be reapplied every time the site is updated? The script I'm trying to run is a 3rd party help chat system. I've also tried applying the script directly to the custom javascript section but the code doesn't run.

Any ideas?

Thanks,

X-Cart 5.3.2.8 running on Windows
__________________
David
X-Cart Business 5.3.2.2
Reply With Quote
  #2  
Old 04-26-2017, 10:29 AM
 
superdave144 superdave144 is offline
 

Advanced Member
  
Join Date: Sep 2015
Posts: 77
 

Default Re: Javascript Applications

Actually I just got it working in the custom javascript section by removing the beginning and end tags as copied below.

<!--Start of Tawk.to Script-->
<script type="text/javascript">
</script>
<!--End of Tawk.to Script-->
__________________
David
X-Cart Business 5.3.2.2
Reply With Quote
  #3  
Old 04-27-2017, 10:37 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Javascript Applications

You can use Theme Tweaker to adjust templates so that upgrades don't overwrite your changes:
http://devs.x-cart.com/en/how-to_articles/how_to_add_google_tag_manager_code_snippets_to_the _store_pages.html

However, after every upgrade you should test if the changes still work with the new X-Cart version and don't conflict with the modifications it has introduced.
__________________
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
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:36 AM.

   

 
X-Cart forums © 2001-2020