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

Need to reference JavaScript file that would normally go in <head>, how to integrate?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-12-2009, 12:38 PM
 
racer_x racer_x is offline
 

Member
  
Join Date: Nov 2008
Posts: 25
 

Default Need to reference JavaScript file that would normally go in <head>, how to integrate?

In an html document, I would simply reference the location of the script "scroller.js" in my <head> area. In x-cart, however.......

anyway, it's a custom scrolling panoramic image that will be displayed on the main page. As for inserting the <body> text, I'm fine. Any ideas?
__________________
X-Cart 4.1.X, LiteCommerce2.2
Reply With Quote
  #2  
Old 06-12-2009, 12:46 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Need to reference JavaScript file that would normally go in <head>, how to integrate?

<head> is located in /skin1/customer/home.tpl

If the js is only needed on the home page, use this if to limit it to "/"

Code:
{if $main eq "catalog" and $current_category.category eq ""} {literal} <script language="JavaScript" src="javascript.js" type="text/javascript"></script>{/literal} {/if}

ok?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 08:56 AM.

   

 
X-Cart forums © 2001-2020