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

Change company name to home in location

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-25-2006, 08:12 AM
 
dmi-martin dmi-martin is offline
 

Newbie
  
Join Date: Aug 2006
Posts: 2
 

Default Change company name to home in location

How or where can I change the company name to just say "home" in the location script or breadcrumbs?
__________________
Martin
Reply With Quote
  #2  
Old 09-25-2006, 10:29 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default Re: Change company name to home in location

This can be found in the general settings.

Please enter your version number, so we'll can assist you better in the future.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #3  
Old 09-25-2006, 10:32 AM
  mcitde's Avatar 
mcitde mcitde is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 61
 

Default Re: Change company name to home in location

You can do very simple by changing the skin1/location.tpl. First look for {section name=position loop=$location} change it to {section name=position loop=$location start=1}. This will take away the company name. Then look for {if $location} at the top. After just add <a href="home.php">Home</a> :: . Thats it...
__________________
v 4.1.8 and v 4.1.9
WIN XP: Apache 2.2.4, PHP 5.2.3, MySQL 5.0.45
UNIX: Apache 1.3, PHP 4.4.4, MySQL 5.0.22
Reply With Quote
  #4  
Old 09-25-2006, 11:10 AM
 
dmi-martin dmi-martin is offline
 

Newbie
  
Join Date: Aug 2006
Posts: 2
 

Default Re: Change company name to home in location

Thank you, worked great.
__________________
Martin
Reply With Quote
  #5  
Old 09-26-2006, 03:11 AM
 
balinor balinor is offline
 

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

Default Re: Change company name to home in location

Please be sure to update your signature as mentioned above per the forum rules:

http://forum.x-cart.com/viewtopic.php?t=6489

Thank you
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 10-17-2006, 03:34 AM
 
DaveB DaveB is offline
 

Senior Member
  
Join Date: May 2004
Location: UK
Posts: 121
 

Default Re: Change company name to home in location

Quote:
Originally Posted by mcitde
You can do very simple by changing the skin1/location.tpl. First look for {section name=position loop=$location} change it to {section name=position loop=$location start=1}. This will take away the company name. Then look for {if $location} at the top. After just add <a href="home.php">Home</a> :: . Thats it...

Can I just add.

If you move the line <FONT....

above {if $Location}

so that it looks like

<FONT class="NavigationPath">
{if $location}<a href="home.php">Home :: </a>

Your breadcrumbs will have the style applied to the 'Home' as well.
__________________
Xcart 4.0.19 Pro
mySQL 5.5.44
PHP 5.3.27
Reply With Quote
  #7  
Old 10-17-2006, 09:09 AM
 
William William is offline
 

Member
  
Join Date: Sep 2006
Posts: 20
 

Smile Re: Change company name to home in location

This is a perfect answer to the question!

I would also like to add that you could really simplify the whole location.tpl as such:

Code:
{if $location} {strip} <p class="theWhere"> <a href="home.php">Home</a>&nbsp;&rarr;&nbsp; {section name=position loop=$location start=1} {if $location[position].1 ne "" }<a href="{$location[position].1|amp}">{/if} {$location[position].0} {if $location[position].1 ne "" }</a>{/if} {if not %position.last%}&nbsp;&rarr;&nbsp;{/if} {/section} </p> {/strip} {/if}
__________________
X-Cart version 4.1.7 (unix)
Reply With Quote
  #8  
Old 11-09-2006, 10:21 PM
 
ephesians525 ephesians525 is offline
 

Advanced Member
  
Join Date: May 2005
Location: Sydney Australia
Posts: 42
 

Default Re: Change company name to home in location

If it is any help to anyone. I followed the above instructions, and still the style of "Home" was different so I added a class to the anchor:
<FONT class="NavigationPath">
{if $location}<a href="home.php" class="NavigationPath">Home</a>&nbsp;::&nbsp;

It worked better for styling the anchor than font class.
__________________
Caroline
Version 4.1.3
Reply With Quote
  #9  
Old 03-29-2007, 12:50 PM
 
Michaelklouda Michaelklouda is offline
 

Newbie
  
Join Date: Oct 2006
Posts: 5
 

Default Re: Change company name to home in location

Ephesians525 - thank you. And everyone else, thank you as well. This is exactly what I was looking for!
__________________
Version 4.1.7
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 06:20 AM.

   

 
X-Cart forums © 2001-2020