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

location.tpl - change company name

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-07-2005, 12:10 PM
 
Dybbuk Dybbuk is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 77
 

Default location.tpl - change company name

Hi,

Is it possible to change the company name that appears in the breadcrumb navigation created by location.tpl to just "Home"?

If so, how?

David
__________________
Version 4.0.16
Reply With Quote
  #2  
Old 11-07-2005, 12:25 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Change the code in your location.tpl file to this:

Code:
{if $location} <FONT class="NavigationPath"> {strip} Home:: {section name=position loop=$location start=1} {if $location[position].1 ne "" }<A href="{$location[position].1}" class="NavigationPath">{/if} {$location[position].0} {if $location[position].1 ne "" }</A>{/if} {if not %position.last%}::{/if} {/section} {/strip} </FONT> {/if}
Reply With Quote
  #3  
Old 11-08-2005, 03:07 AM
 
Dybbuk Dybbuk is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 77
 

Default

Thanks Tela, that works perfectly.

Nice sites, BTW
__________________
Version 4.0.16
Reply With Quote
  #4  
Old 11-08-2005, 03:10 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Thank you for the compliments on the sites.
Reply With Quote
  #5  
Old 11-12-2005, 05:42 PM
 
Edda Edda is offline
 

Member
  
Join Date: Nov 2005
Posts: 25
 

Default

so great !!!!!
but I need ask this....
if possible to leave location text if the customer it's in home page ????
__________________
x-cart version 4.0.16
Reply With Quote
  #6  
Old 11-12-2005, 06:13 PM
 
balinor balinor is offline
 

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

Default

Code:
{if $main eq "catalog" and $current_category.category eq ""} {else} {include file="location.tpl"}{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-12-2005, 06:25 PM
 
Edda Edda is offline
 

Member
  
Join Date: Nov 2005
Posts: 25
 

Default

thanks so much !!
__________________
x-cart version 4.0.16
Reply With Quote
  #8  
Old 12-26-2005, 04:44 PM
 
aop aop is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: los angeles
Posts: 96
 

Default

I'd like to do this change to my location.tpl, but because I have DSEFU
mode, my file is a little different:

Code:
{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *} {if $location} <FONT class="NavigationPath"> {strip} {section name=position loop=$location} {if $location[position].1 ne "" } {* SAFETYNET DSEFU MOD *} {if $enable_seo_links == "Y"} <A href="{seo_link location_name=$location[position].0 location_link=$location[position].1}" class="NavigationPath"> {else} <A href="{$location[position].1}" class="NavigationPath"> {/if} {* END SAFETYNET DSEFU MOD *} {/if} {$location[position].0} {if $location[position].1 ne "" }</A>{/if} {if not %position.last%}<font color="#E77300">&raquo;</font>{/if} {/section} {/strip} </FONT> [img]{$ImagesDir}/goback.gif[/img] {/if}

What would be the changes in my location.tpl ?
Thanks !
__________________
www.furniturevision.com
Version 3.2.2 retired
Updated to 4.0.8 - retired
Updated to 4.1.9 - retired
Updated to 4.4
Reply With Quote
  #9  
Old 12-27-2005, 03:42 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default

Mine is like this..

Code:
{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *} {if $location} <FONT class="NavigationPath"> {strip} {section name=position loop=$location} {if $location[position].1 ne "" } {* SAFETYNET DSEFU MOD *} {if $location[position].0 ne "home.php"} {if $enable_seo_links == "Y"} <A href="{seo_link location_name=$location[position].0 location_link=$location[position].1}" class="NavigationPath"> {else} <A href="{$location[position].1}" class="NavigationPath"> {/if} {else} <a href="{$http_location}/" class="NavigationPath"> {/if} {* END SAFETYNET DSEFU MOD *} {/if} {if $location[position].0 eq $config.Company.company_name} Home {else} {$location[position].0} {/if} {if $location[position].1 ne "" }</A>{/if} {if not %position.last%}\{/if} {/section} {/strip} </FONT> {/if}

The change is the addition of
{if $location[position].0 eq $config.Company.company_name}
Home
{else}

I hope this helps.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #10  
Old 12-27-2005, 02:29 PM
 
aop aop is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: los angeles
Posts: 96
 

Default

Thanks Jwait;
it worked great, and I also add the Balinor bit of code and it was
perfect.
Appreciate.
aldo
__________________
www.furniturevision.com
Version 3.2.2 retired
Updated to 4.0.8 - retired
Updated to 4.1.9 - retired
Updated to 4.4
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 11:13 AM.

   

 
X-Cart forums © 2001-2020