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)
-   -   Changing breadcrumbs... want to make "HOME" the to (https://forum.x-cart.com/showthread.php?t=11704)

jkirkpatrick 01-25-2005 10:28 AM

Changing breadcrumbs... want to make "HOME" the to
 
Hello,

Instead of having my company name as the top level in the breadcrumbs like this:

Company :: category :: subcategory :: product


I would like to have:

HOME :: category :: subcategory :: product


I tried simply changing the company name in the General Settings area but then HOME shows up in my title tags instead of my company name.

I'm sure the secret lies in changing the locations.tpl file but I'm at a loss as to how to do that.

Thanks,
Jennifer

gfiebich 01-26-2005 07:03 AM

Hi Jennifer-
I was in the same boat as you and came up with this (less than elegant) solution:

Code:

{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *}
{if $location}
        {strip}
                {section name=position loop=$location}
                        {if $location[position].1 ne "" }
                                <A href="{$location[position].1}" class="BlueLink12" {if %position.last%} style="color: rgb(114, 135, 152);" {/if}>
                        {else}
                                <FONT class="BlueLink12">
                        {/if}
                        {if $location[position].0 eq $config.Company.company_name}
                                Home
                        {else}
                                {$location[position].0}
                        {/if}
                        {if $location[position].1 ne "" }
                                </A>
                        {else}
                                </font>
                        {/if}
                        {if not %position.last%}
                                <font class="BlueLink12" color="#003366">&gt;</font>
                        {/if}
                {/section}
        {/strip}
{/if}

The code just compares the current location against $config.Company.company_name and if it finds a match, replaces that text with "Home".

good luck,
Glen

jkirkpatrick 01-27-2005 05:03 AM

Thanks Glen, worked perfectly!

Jennifer

DanC 02-22-2005 10:01 AM

Thanks gfiebich... works like a champ! :D

Chris B 05-08-2006 08:48 PM

Removing the home link entirely from the breadcrumb
 
How can we remove the home page link entirely from the breadcrumb?

Version 4.0.18

Thank you,

Chris

ecommerce 08-02-2006 06:49 PM

chris b


got to

general settings
seo options
paget title options: choose the one without "shop name"

ecommerce 08-02-2006 06:51 PM

in 4 0 18

Instead of having my company name as the top level in the breadcrumbs like this:

Company :: category :: subcategory :: product


I would like to have:

Home :: category :: subcategory :: product

I would like Home to only appear if the customer is NOT on the HOME PAGE. In other words, there's no need to tell them their in the home page.

i know i got to edit location.ptl

ecommerce 08-02-2006 06:51 PM

heres my location ptl for 4 0 18

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

chamberinternet 08-08-2006 06:04 AM

Quote:

Originally Posted by ecommerce
in 4 0 18

Instead of having my company name as the top level in the breadcrumbs like this:

Company :: category :: subcategory :: product


I would like to have:

Home :: category :: subcategory :: product

I would like Home to only appear if the customer is NOT on the HOME PAGE. In other words, there's no need to tell them their in the home page.

i know i got to edit location.ptl


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

Regards

Shafiq :sK

ecommerce 08-08-2006 08:44 AM

thanks chamber, i got it.


All times are GMT -8. The time now is 06:08 AM.

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