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)
-   -   Editing body of main customer page. (https://forum.x-cart.com/showthread.php?t=18024)

AuroraGenerators 11-16-2005 08:47 AM

Editing body of main customer page.
 
Been searching for some time and pulling my hair out.

I want to edit the body of the main page with my own static content.
Anything I add to

/customer/home.tpl
/suctomer/home_main.tp.

Ends up on every product page.

Any suggestion please?

AuroraGenerators 11-16-2005 08:51 AM

Sorry I forgot to add.. I know its the welcome.tpl but somehow I edited a template and welcome.tpl never shows up again on main page.

balinor 11-16-2005 08:56 AM

Yes, you need to use welcome.tpl. It is called from home_main.tpl by this line of code:

{elseif $main eq "catalog" and $current_category.category eq ""}
{include file="customer/main/welcome.tpl" f_products=$f_products}

so make sure you didn't remove that by mistake.

AuroraGenerators 11-16-2005 09:10 AM

Thank you.

Its is there.
So is welcome.tpl and I've also restored it from original. Still don't have my welcome message.

balinor 11-16-2005 09:15 AM

Your welcome.tpl should look like this:

Code:

{* $Id: welcome.tpl,v 1.23.2.1 2005/04/23 08:32:48 max Exp $ *}
{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>
{/if}
{$lng.txt_welcome}



{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}



{include file="customer/main/featured.tpl" f_products=$f_products}


Make sure you didn't delete txt_welcome from the language variables section.

AuroraGenerators 11-16-2005 09:22 AM

Strange, just did a cut and paste of what you showed and it works.
Only difference I see is I had a blank line at the end.

14 lines rather then 13.

Was the welcome.tpl

Thank you so much for your help.

balinor 11-16-2005 09:27 AM

Yea, don't edit templates in Cpanel or anything other than the Admin area of X-Cart or a good code editor. Other editors can leave blank spaces which as you now know, will cause problems :)


All times are GMT -8. The time now is 02:19 AM.

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