Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Editing body of main customer page.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-16-2005, 08:47 AM
 
AuroraGenerators AuroraGenerators is offline
 

Member
  
Join Date: Nov 2005
Posts: 15
 

Default 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?
__________________
Version 4.0.16
www.AuroraGenerators.com
Reply With Quote
  #2  
Old 11-16-2005, 08:51 AM
 
AuroraGenerators AuroraGenerators is offline
 

Member
  
Join Date: Nov 2005
Posts: 15
 

Default

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.
__________________
Version 4.0.16
www.AuroraGenerators.com
Reply With Quote
  #3  
Old 11-16-2005, 08:56 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 11-16-2005, 09:10 AM
 
AuroraGenerators AuroraGenerators is offline
 

Member
  
Join Date: Nov 2005
Posts: 15
 

Default

Thank you.

Its is there.
So is welcome.tpl and I've also restored it from original. Still don't have my welcome message.
__________________
Version 4.0.16
www.AuroraGenerators.com
Reply With Quote
  #5  
Old 11-16-2005, 09:15 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 11-16-2005, 09:22 AM
 
AuroraGenerators AuroraGenerators is offline
 

Member
  
Join Date: Nov 2005
Posts: 15
 

Default

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.
__________________
Version 4.0.16
www.AuroraGenerators.com
Reply With Quote
  #7  
Old 11-16-2005, 09:27 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:53 AM.

   

 
X-Cart forums © 2001-2020