| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How do I tuck the script from check_options.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|