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)
-   -   location.tpl - change company name (https://forum.x-cart.com/showthread.php?t=17807)

Dybbuk 11-07-2005 12:10 PM

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

TelaFirma 11-07-2005 12:25 PM

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}


Dybbuk 11-08-2005 03:07 AM

Thanks Tela, that works perfectly.

Nice sites, BTW ;-)

TelaFirma 11-08-2005 03:10 AM

Thank you for the compliments on the sites.

Edda 11-12-2005 05:42 PM

so great !!!!!
but I need ask this....
if possible to leave location text if the customer it's in home page ????

balinor 11-12-2005 06:13 PM

Code:

{if $main eq "catalog" and $current_category.category eq ""}
{else}
{include file="location.tpl"}{/if}


Edda 11-12-2005 06:25 PM

thanks so much !!

aop 12-26-2005 04:44 PM

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 !

JWait 12-27-2005 03:42 AM

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.

aop 12-27-2005 02:29 PM

Thanks Jwait;
it worked great, and I also add the Balinor bit of code and it was
perfect.
Appreciate.
aldo

thundernugs 01-09-2006 09:09 PM

TelaFirma's and Balinor's mods works great in version 4.0.17.

for any noobs, Balinor's mod goes in customer/home.tpl

thanks!

webtron 03-03-2006 04:38 PM

Balinor,

Where exactly in the location.tpl does this code you mention go?

{if $main eq "catalog" and $current_category.category eq ""}
{else}
{include file="location.tpl"}{/if}

After what and before what?

kiwiessence 07-19-2006 02:03 PM

Webtron,

You can use it this way...

{if $main eq "catalog" and $current_category.category eq ""}
{else 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}

imimin 04-16-2007 12:00 PM

Re: location.tpl - change company name
 
From TelaFirma intitial reply to initial thrread:

Quote:

{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}

I tried this code and it worked FAIRLY well. One problem, it does not allow previous pages visited in the breadcrumbs to be hyperlinked.

How do I fix this?

Thanks!

imimin 04-16-2007 01:39 PM

Re: location.tpl - change company name
 
That is, the "Home" portion of the breadcrumbs is not hyperlinked.

inebriate 04-16-2007 06:36 PM

Re: location.tpl - change company name
 
Quote:

Originally Posted by imimin
That is, the "Home" portion of the breadcrumbs is not hyperlinked.


just wrap the "home" portion in a hyperlink...<a href="{$http_location}/">Home::</a>

glsp 04-22-2008 12:01 PM

Re: location.tpl - change company name
 
Here is my variation, which allows for a hyperlinked, language-dependent home:
(in addition to txt_site_name, I've got txt_home, just in case)

Quote:

{if $location}
<font class="NavigationPath">
{strip}
{section name=position loop=$location}
{if $location[position].1 ne "" }<a href="{$location[position].1|amp}" class="NavigationPath">{/if}
{if %position.first%}
{$lng.txt_site_name}
{else}
{$location[position].0}
{/if}
{if $location[position].1 ne "" }</a>{/if}
{if not %position.last%}&nbsp;::&nbsp;{/if}
{/section}
{/strip}
</font>
<br />
{/if}

Thedae2k 10-18-2008 10:07 AM

Re: location.tpl - change company name
 
Mine looks like this in 4.1.9....

<font color="#FFFFFF">
{if $location}
{strip}
<a href="home.php" class="NavigationPath">
Home</a>&nbsp;>&nbsp;
{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%}&nbsp;>&nbsp;{/if}
{/section}
{/strip}
{/if}
</font>

Panther 02-27-2009 06:39 PM

Re: location.tpl - change company name
 
When I try to do this I get the following error:

"Error File operation is failed."

Anyone know what I'm doing wrong?

Thanks






Quote:

Originally Posted by TelaFirma
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}



JWait 02-28-2009 08:16 AM

Re: location.tpl - change company name
 
Yeah, you are using version 4.2. This mod is for previous versions.
See http://forum.x-cart.com/showthread.php?t=45583


All times are GMT -8. The time now is 09:30 PM.

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