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
  #11  
Old 01-09-2006, 09:09 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default

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!
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #12  
Old 03-03-2006, 04:38 PM
 
webtron webtron is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 64
 

Default

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?
__________________
Thanks to for your comments/help.
X-cart Version 4.0.17
Reply With Quote
  #13  
Old 07-19-2006, 02:03 PM
 
kiwiessence kiwiessence is offline
 

Newbie
  
Join Date: Jun 2006
Posts: 7
 

Default

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}
__________________
XCart: 4.0.1.8
PHP: 5.0.4
MySQL: 4.1.20
Reply With Quote
  #14  
Old 04-16-2007, 12:00 PM
 
imimin imimin is offline
 

Senior Member
  
Join Date: Mar 2007
Posts: 195
 

Default 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!
__________________
Demoing v4.4.2 for new site
Licensed v4.0.19
Reply With Quote
  #15  
Old 04-16-2007, 01:39 PM
 
imimin imimin is offline
 

Senior Member
  
Join Date: Mar 2007
Posts: 195
 

Default Re: location.tpl - change company name

That is, the "Home" portion of the breadcrumbs is not hyperlinked.
__________________
Demoing v4.4.2 for new site
Licensed v4.0.19
Reply With Quote
  #16  
Old 04-16-2007, 06:36 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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>
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #17  
Old 04-22-2008, 12:01 PM
 
glsp glsp is offline
 

Member
  
Join Date: Dec 2007
Location: Northampton, MA
Posts: 27
 

Default 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}
__________________
X-Cart Gold version 4.1.9

PS: This is what part of the alphabet would look like if Q and R were eliminated.
Reply With Quote
  #18  
Old 10-18-2008, 10:07 AM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default 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>
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
  #19  
Old 02-27-2009, 06:39 PM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default 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}
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #20  
Old 02-28-2009, 08:16 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default 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
__________________
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
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 01:52 AM.

   

 
X-Cart forums © 2001-2020