![]() |
java script help
I want to add some java scripts to my store front page. I have code to put in the <head> section, the <body> tag and the body section. How do I do this with xcart?
|
Re: java script help
Open up customer/home.tpl and add them in. Note that you will need to use {literal} tags:
{literal} javascript code {/literal} |
Re: java script help
Thanks
I don't see customer/home.tpl but I have customer/home.php - same thing? |
Re: java script help
Nope, whenever we are talking about templates, we mean the skin1 directory. So in this case it would be skin1/customer/home.tpl.
|
Re: java script help
oops I found it skin1/customer/home.tpl
Thanks for your help balinor, you always come through! |
Re: java script help
I try ;)
|
Re: java script help
because the script I'm using only effects the front page, I'm getting an error on all my other pages because the <head> section has code referring to code in the <body> section that's not there.
|
Re: java script help
Surround the JS with this and it will only show for the home page:
{if $main eq "catalog" and $current_category.category eq ""} Javascript here {/if} |
All times are GMT -8. The time now is 02:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.