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)

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 05:29 AM.

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