![]() |
Re: How do I add Javascript?
This is my welcome.tpl I don't know how this will help me place the code...
{if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''} <H3>{$lng.lbl_welcome_back}, {$smarty.cookies.GreetingCookie|replace:"\'":"'"} </H3> {else} <H3>{$lng.lbl_welcome_to} { $config.Company.company_name }</H3> <p>{/if} {*{$lng.txt_welcome}*}</p> <p>{include file="customer/main/homepage.tpl"} </p> <P> {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers.tpl"} {/if} <P> {include file="customer/main/featured.tpl" f_products=$f_products} homepage.tpl is the page i need to modify, I already know that, I just can't figure out the correct code... |
Re: How do I add Javascript?
X-cart doesn't have a "homepage.tpl". If you want your marquee to be directly below "Welcome to..." or "Welcome back..." then either place your code, or insert an include (probably a better idea) in the area you have commented out ( {*{$lng.txt_welcome}*} ).
Also, there appears to be some formatting errors in your welcome.tpl. You have "open paragraph (<p>) statements without "close paragraph"statements, and 1 of these is within a "if" statement. Code:
{if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''} |
Re: How do I add Javascript?
I actually do have a "homepage.tpl" It is what controls the center section of the customer side. (where "welcome to" starts) I don't know if it was written specifically for our cart, I guess maybe it was since you say that x-cart dosen't have this file by default.
Anyway, I finally got it to work. I had too many lines and spaces in the code. It was breaking the page, so I condensed all the JS down to have no extra empty lines between the code. This is what I placed at the very top of the file Quote:
|
Re: How do I add Javascript?
I would like to do an include, but I'm not sure what to save the file I'm going to include as. Can I just make it a html?
If I was to include it where you say, I think it will spread across the entire white section, and that's not what I want. I want to add a flash to go there. The marquee is where I want it right now. |
All times are GMT -8. The time now is 02:14 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.