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)
-   -   "txt_welcome" gone from home page !! (https://forum.x-cart.com/showthread.php?t=44672)

anandat 01-08-2009 02:35 AM

"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 ?

pauldodman 01-08-2009 04:11 AM

Re: "txt_welcome" gone from home page !!
 
Have you checked the template - skin1/customer/main/welcome.tpl?

JWait 01-08-2009 04:42 AM

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.

anandat 01-08-2009 04:56 AM

Re: "txt_welcome" gone from home page !!
 
Quote:

Originally Posted by JWait
Also look at skin1/customer/home.tpl and make sure the reference to welcome.tpl is still there.

Thanks for your reply buddy. There no reference for welcome.tpl in skin1/customer/home.tpl file & it's not there in main distribution file also.

But there is a referance for welcome.tpl file in customer/home_main.tpl template.

Where should be the reference in home.tpl file ?

balinor 01-08-2009 04:56 AM

Re: "txt_welcome" gone from home page !!
 
I believe he meant home_main.tpl - it shouldn't be in home.tpl

anandat 01-08-2009 04:57 AM

Re: "txt_welcome" gone from home page !!
 
Quote:

Originally Posted by pauldodman
Have you checked the template - skin1/customer/main/welcome.tpl?


Yes the welcome.tpl is there .

pauldodman 01-08-2009 04:58 AM

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

anandat 01-08-2009 05:02 AM

Re: "txt_welcome" gone from home page !!
 
Quote:

Originally Posted by pauldodman
I meant to actually check the template itself - make sure the reference to txt_welcome is still in welcome.tpl

Thanks Paul for your suggestion.

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}

pauldodman 01-08-2009 05:07 AM

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?

anandat 01-08-2009 05:33 AM

Re: "txt_welcome" gone from home page !!
 
Quote:

Originally Posted by pauldodman
Yes, that's there ok - are your featured products showing on the home page ok?


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:

Originally Posted by pauldodman
Have you tried changing this text and saving it?


I edited the text from admin & saved.

Quote:

Originally Posted by pauldodman
Have you tried running cleanup.php?

I run cleanup.php also !

Quote:

Originally Posted by pauldodman
Have you emptied your computer's cache?

I clearup my firefox's cache & offline web pages also.

Still it's not displaying welcome text !!!

Any other suggestion would be welcome.
Thanks to all guys for your help :)

JWait 01-08-2009 08:28 AM

Re: "txt_welcome" gone from home page !!
 
Quote:

Originally Posted by anandat
Thanks for your reply buddy. There no reference for welcome.tpl in skin1/customer/home.tpl file & it's not there in main distribution file also.

But there is a referance for welcome.tpl file in customer/home_main.tpl template.

Where should be the reference in home.tpl file ?


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?

anandat 01-09-2009 03:10 AM

Re: "txt_welcome" gone from home page !!
 
Quote:

Originally Posted by JWait
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.

Ok tried this also but still not showing the welcome text


Quote:

Originally Posted by JWait
Are you getting the Welcome back "customer" or Welcome to "your site name" on the main page?

No this message doesn't show evevn though module "Greet Visitor" is enabled in the admin module options !!

Any other suggestion ? :)

JWait 01-09-2009 03:53 AM

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).

anandat 01-09-2009 04:00 AM

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 :)

pauldodman 01-09-2009 04:02 AM

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.

anandat 01-09-2009 04:12 AM

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.