X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Head tag location XC 5.x (https://forum.x-cart.com/showthread.php?t=72353)

CenturyPerf 06-26-2015 02:22 PM

Head tag location XC 5.x
 
How do I enter a script before the </head> tag in XCART 5.x.x?

I found the </head> tag: /default/en/header/body.tpl

However, entering the script crashes the site.

I need to paste a script into the website's HTML source code before the closing </head> tag. The script embeds Zendesk support options on the site.

The code needs to remain even after XCART version updates.

Or, do I need to do this by creating some sort of module that adds the script to the site? If so, how does someone with limited coding experience go about it?

Thanks

cflsystems 06-26-2015 02:58 PM

Re: Head tag location XC 5.x
 
Quote:

Originally Posted by CenturyPerf
Or, do I need to do this by creating some sort of module that adds the script to the site? If so, how does someone with limited coding experience go about it?

Thanks


Yes you need a module.
Check these - http://kb.x-cart.com/display/XDD/Developer+docs - not sure if there is an exact example though

CenturyPerf 06-26-2015 07:37 PM

Re: Head tag location XC 5.x
 
Another option is to use a different support ticket product.

Faster configuration, cleaner layout, and iframe tags work! Freshdesk is considerably cleaner and easier to work with than Zendesk.

tony_sologubov 06-29-2015 06:22 AM

Re: Head tag location XC 5.x
 
Hello @CenturyPerf,

This module example should help you in this task:
http://kb.x-cart.com/display/XDD/Step+4+-+working+with+settings

Tony


All times are GMT -8. The time now is 07:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.