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

Main index page title

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-24-2010, 01:30 PM
  FTI's Avatar 
FTI FTI is offline
 

Senior Member
  
Join Date: Oct 2009
Location: Plovdiv, Bulgaria
Posts: 153
 

Default Main index page title

Hello, I want to change the title on the main index page. But I don't want to use the Company name field in admin panel. I want to write a big fat title for the index page, but I don't want it to show in invoices and other parts, cause it is just too long. So In 2 words separate title for the website, but still I want to use the Company name for other parts of the website. And also my comapny name and site name are different. I can't put company name as a title, and I need the comapany name for invoices.

Can you help me?
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
Reply With Quote
  #2  
Old 01-24-2010, 04:55 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Main index page title

Open skin1/customer/service_head.tpl, find
Code:
<title>{$html_page_title|escape}</title>
and replace with
Code:
{if $main eq "catalog" && $current_category.category eq ""} <title>YOUR NEW TITLE HERE</title> {else} <title>{$html_page_title|escape}</title> {/if}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
FTI (02-20-2010)
  #3  
Old 02-19-2010, 05:31 AM
 
worldomega worldomega is offline
 

Advanced Member
  
Join Date: Apr 2009
Posts: 79
 

Default Re: Main index page title

4.3.1 service_head.tpl is very different. How can you do this in 4.3?
__________________
Using 4.3.1 and looking forward to 4.4. I wish for easy upgrade!
Reply With Quote
  #4  
Old 02-19-2010, 06:49 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Main index page title

Try this - replace {get_title page_type=$meta_page_type page_id=$meta_page_id} with

{if $main eq "catalog" && $current_category.category eq ""}
<title>YOUR NEW TITLE HERE</title>
{else}
{get_title page_type=$meta_page_type page_id=$meta_page_id}
{/if}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
FTI (06-07-2010), worldomega (02-27-2010)
  #5  
Old 02-20-2010, 07:10 AM
  FTI's Avatar 
FTI FTI is offline
 

Senior Member
  
Join Date: Oct 2009
Location: Plovdiv, Bulgaria
Posts: 153
 

Default Re: Main index page title

Thanks, I'll try
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
Reply With Quote
  #6  
Old 02-27-2010, 05:08 AM
 
worldomega worldomega is offline
 

Advanced Member
  
Join Date: Apr 2009
Posts: 79
 

Default Re: Main index page title

It worked! Thanks!
__________________
Using 4.3.1 and looking forward to 4.4. I wish for easy upgrade!
Reply With Quote
  #7  
Old 06-07-2010, 02:11 AM
  FTI's Avatar 
FTI FTI is offline
 

Senior Member
  
Join Date: Oct 2009
Location: Plovdiv, Bulgaria
Posts: 153
 

Default Re: Main index page title

This worked for me also. Thanks!
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:52 PM.

   

 
X-Cart forums © 2001-2020