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

Inserting Javascript into Template (used Literal tag)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 01-24-2012, 02:33 PM
 
aussie2009 aussie2009 is offline
 

Advanced Member
  
Join Date: Jan 2010
Posts: 37
 

Default Re: Inserting Javascript into Template (used Literal tag)

Hello
Thanks for your input
I placed the script in the home.tpl, between the head tags. and it come back as;
Contains a Crazy Egg tracking script? No. The Crazy Egg tracking script is not installed.
Any ideas why that does not work?
Also, Is home.tpl only for home page or is for all pages?
__________________
Version 4.4.5
Reply With Quote
  #12  
Old 01-25-2012, 01:51 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Inserting Javascript into Template (used Literal tag)

The "skin1/customer/home.tpl" is used for almost all the pages in X-Cart.

As far as I can see from you initial message the script should be placed at the very end of the page, before the closing body tag.

The script code should be surounded with the {literal}....{/literal} smarty tags.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
aussie2009 (01-25-2012)
  #13  
Old 01-25-2012, 02:25 AM
 
aussie2009 aussie2009 is offline
 

Advanced Member
  
Join Date: Jan 2010
Posts: 37
 

Default Re: Inserting Javascript into Template (used Literal tag)

Hello
Thank you.
It is now working fine. I didn't realize that i still had to use the literal tags
All the best
paul
__________________
Version 4.4.5
Reply With Quote
  #14  
Old 10-20-2012, 09:13 PM
 
product99 product99 is offline
 

Newbie
  
Join Date: Jan 2010
Posts: 4
 

Default Re: Inserting Javascript into Template (used Literal tag)

I was pulling my hair out, until I found this thread. Thanks. I got my crazyegg script working too.
__________________
xcart version 4.2.2
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 11:06 PM.

   

 
X-Cart forums © 2001-2020