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

Head tag location XC 5.x

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 06-26-2015, 02:22 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default 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
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #2  
Old 06-26-2015, 02:58 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 06-26-2015, 07:37 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default 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.
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #4  
Old 06-29-2015, 06:22 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev 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:01 PM.

   

 
X-Cart forums © 2001-2020