X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Inserting Javascript into Template (used Literal tag) (https://forum.x-cart.com/showthread.php?t=37247)

aussie2009 01-24-2012 02:33 PM

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?

qualiteam 01-25-2012 01:51 AM

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.

aussie2009 01-25-2012 02:25 AM

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

product99 10-20-2012 09:13 PM

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.


All times are GMT -8. The time now is 01:26 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.