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

Where is the file that the bread crumb is getting info from?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-06-2006, 07:58 AM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default Where is the file that the bread crumb is getting info from?

I see that the bread crumb is always showing whatever company name I typed in the control panal. I only wanted it to show "home" as the first level of my bread crumb instead of my company name. I looked into location.tpl, but doesn't seem like there is anything that I can modify to change that. Does anyone know where is the file I can modifiy to change the name of the first level on bread crumb to something else instead of company name?
__________________
X-Cart Gold 4.0.17
Reply With Quote
  #2  
Old 07-06-2006, 09:29 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default

have you tried using webmaster mode - that's really handy for finding things like this,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #3  
Old 07-06-2006, 09:35 AM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

Yes, it just shows the location.tpl which shows only the following coding, still no clue where is the code that is pulling the company name.

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 "" }<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}
__________________
X-Cart Gold 4.0.17
Reply With Quote
  #4  
Old 07-06-2006, 11:58 AM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

Hi, I found it in auth.php in the root directory. The language string is lbl_site_title at least in v 4.1.2 I imagine it's the same. Create a new language lable and call it lbl_home, then changed the lbl_site_title to lbl_home.

I haven't checked all my pages yet to make sure the change didn't affect anything else, you may want to do that.

Hope that helps
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
Reply With Quote
  #5  
Old 07-06-2006, 01:06 PM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

I dont see anything language label in auth.php. Can you tell me which line are you refering to? I'm on v4.0.17
__________________
X-Cart Gold 4.0.17
Reply With Quote
  #6  
Old 07-06-2006, 01:36 PM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

I just checked the auth.php for 4.0.18 and yeah I see it is not there. Check you languages and see what your company name is under, what's the variable? mine was lbl_site_title.
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
Reply With Quote
  #7  
Old 07-06-2006, 02:37 PM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

It is not pulling from any language. It is pulling from the company name information I enter on xxxx.com/xcart/admin/configuration.php?option=Company
__________________
X-Cart Gold 4.0.17
Reply With Quote
  #8  
Old 07-06-2006, 03:31 PM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

hmm, I never thought of that. Did you try and see if there was any language variable for your company name? That's the first thing I did and then searched for the variable within the xcart directory using dreamweaver and found it in the auth.php file, changed it and lucked out.

I compared the 2 versions together and see there's an extra line on 4.1, it looks like it points to the language and if nothing is there then it uses the company name in options, I'm thinking if you play in this area and try a few things something should work. I was hoping I coudl help you out but its pretty hard when I don't have that version runnign so I can't test it.

This is how 4.1.2 looks.

Quote:
$lbl_site_name = func_get_langvar_by_name("lbl_home", "", false, true);
$location = array();
$location[] = array((!empty($lbl_site_name) ? $lbl_site_name : $config["Company"]["company_name"]), "home.php");

The bottom 2 lines should be 137 & 138 in yours. I think in the end you want to try and change line 138 to call on a language label.

Good luck!
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
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:47 PM.

   

 
X-Cart forums © 2001-2020