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

adding javascript to template?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-25-2006, 12:36 AM
 
xenlab xenlab is offline
 

Member
  
Join Date: Dec 2005
Posts: 11
 

Default adding javascript to template?

I need to add javascript to menu_manufacturers.tpl, but each time I add it there's a smarty error on the store front.

The javascript itself is fine.

How does one add javascript to a template?

Thank you!
Xenlab
__________________
-------------------------------
Version 4.0.17
Reply With Quote
  #2  
Old 01-25-2006, 12:38 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default

You usually need to put your code between
{literal} code {/literal} tags. You should find plenty of examples like this in the forum if you need some more help.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 01-25-2006, 12:46 AM
 
xenlab xenlab is offline
 

Member
  
Join Date: Dec 2005
Posts: 11
 

Default

thanks dude
__________________
-------------------------------
Version 4.0.17
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 04:32 PM.

   

 
X-Cart forums © 2001-2020