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)
-   -   Where is the file that the bread crumb is getting info from? (https://forum.x-cart.com/showthread.php?t=23058)

Lucent88 07-06-2006 07:58 AM

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?

amy2203 07-06-2006 09:29 AM

have you tried using webmaster mode - that's really handy for finding things like this,

Lucent88 07-06-2006 09:35 AM

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}


robf 07-06-2006 11:58 AM

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

Lucent88 07-06-2006 01:06 PM

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

robf 07-06-2006 01:36 PM

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.

Lucent88 07-06-2006 02:37 PM

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

robf 07-06-2006 03:31 PM

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!


All times are GMT -8. The time now is 03:38 PM.

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