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

How do I tuck the script from check_options.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-13-2006, 09:41 PM
 
fhiremark fhiremark is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: New York
Posts: 66
 

Default How do I tuck the script from check_options.tpl

Hello,

Is there anyway I can tuck away the javascript from check_options.tpl into a .js file? I'm not familiar with javascript so I'm not sure on what the proper way to tuck away the script is.

Right now there's about 300 lines of javascript code that shows up on the source, I'd like for all this to be in 1 line, something like: <SCRIPT SRC="blah/blah/blah.js"></SCRIPT>

I don't know Javascript so I'm not sure on the right syntax to use, somebody please help.
__________________
X-cart GOLD v 4.0.18
Reply With Quote
  #2  
Old 05-14-2006, 03:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Create a new template, put the JS in the template and call the template from home.tpl like this:

{ include file="yourtemplate.tpl"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 07:45 AM.

   

 
X-Cart forums © 2001-2020