![]() |
"txt_welcome" gone from home page !!
Hello Guys,
I don't know exactly but I guess after any template edit by me my welcome text at home page is gone ! How ever in the admin area language section "txt_welcome" still show my site's description. Any one got the idea what could be the wrong ? |
Re: "txt_welcome" gone from home page !!
Have you checked the template - skin1/customer/main/welcome.tpl?
|
Re: "txt_welcome" gone from home page !!
Also look at skin1/customer/home.tpl and make sure the reference to welcome.tpl is still there.
|
Re: "txt_welcome" gone from home page !!
Quote:
But there is a referance for welcome.tpl file in customer/home_main.tpl template. Where should be the reference in home.tpl file ? |
Re: "txt_welcome" gone from home page !!
I believe he meant home_main.tpl - it shouldn't be in home.tpl
|
Re: "txt_welcome" gone from home page !!
Quote:
Yes the welcome.tpl is there . |
Re: "txt_welcome" gone from home page !!
I meant to actually check the template itself - make sure the reference to txt_welcome is still in welcome.tpl
|
Re: "txt_welcome" gone from home page !!
Quote:
Following my welcome.tpl {* $Id: welcome.tpl,v 1.28.2.1 2006/07/12 04:51:17 svowl Exp $ *} {if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''} {assign var="_name" value=$smarty.cookies.GreetingCookie|replace:"\'": "'"} <h3>{$lng.lbl_welcome_back|substitute:"name":$_nam e} </h3> {elseif $lng.lbl_site_title} <h3>{$lng.lbl_welcome_to|substitute:"company":$lng .lbl_site_title}</h3> {else} <h3>{$lng.lbl_welcome_to|substitute:"company":$con fig.Company.company_name}</h3> {/if} {$lng.txt_welcome} <br /> {if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers.tpl"} {/if} <br /> {include file="customer/main/featured.tpl" f_products=$f_products} |
Re: "txt_welcome" gone from home page !!
Yes, that's there ok - are your featured products showing on the home page ok?
If so, what is the text that is supposed to be there - ie the text in the language variable in admin? Is it simple, plain text, or is it full of html code and formatting? Have you tried changing this text and saving it? Have you tried running cleanup.php? Have you emptied your computer's cache? |
Re: "txt_welcome" gone from home page !!
Quote:
Yes featured products are showing correctly. If so, what is the text that is supposed to be there - ie the text in the language variable in admin? Is it simple, plain text, or is it full of html code and formatting? There was HTML link & I used <P> & <B> tags but now I have removed all html tags & using only text. Quote:
I edited the text from admin & saved. Quote:
Quote:
Still it's not displaying welcome text !!! Any other suggestion would be welcome. Thanks to all guys for your help :) |
Re: "txt_welcome" gone from home page !!
Quote:
My bad.. I meant home_main.tpl. In welcome.tpl, try placing some text where your welcome text should be... {$lng.txt_welcome} SOME TEXT HERE and see if it shows up on your home page. Are you getting the Welcome back "customer" or Welcome to "your site name" on the main page? |
Re: "txt_welcome" gone from home page !!
Quote:
Quote:
Any other suggestion ? :) |
Re: "txt_welcome" gone from home page !!
Ok, it looks like your welcome.tpl isn't being called. Check home_main.tpl and make sure it has the following in it...
{elseif $main eq "catalog" and $current_category.category eq ""} {include file="customer/main/welcome.tpl" f_products=$f_products} and also make sure {include file="customer/home_main.tpl"} is in home.tpl (although you would probably have more problems than what you do if it wasn't there). |
Re: "txt_welcome" gone from home page !!
OK....I just figured out after some research my self.
Actually my shop is not in a root directory so I had made a special index.tpl & index.php (in root) to load store from directory /store & my index.tpl is not using home_main.tpl so welcome.tpl was not used . But now I have put string "{$lng.txt_welcome}" in my index.tpl & it's working fine. Thanks JWait & all of you for your help & suggestions. I appreciate your co-operation :) |
Re: "txt_welcome" gone from home page !!
Looks like that may be the problem, although we did check that featured products were showing on the home page - which are in that welcome.tpl - so they would have to be being called from somewhere else if welcome.tpl isn't being used.
|
Re: "txt_welcome" gone from home page !!
Featured products are called as following in my index.tpl file
{if $active_modules.Special_Offers ne ""} {include file="modules/Special_Offers/customer/new_offers_message.tpl"} {/if} {include file="customer/main/featured.tpl" f_products=$f_products} The index.tpl was created by qualiteam staff for me so I guess they must have created it after doing all the research |
All times are GMT -8. The time now is 02:57 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.