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

Breadcrumb Home Link

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-24-2009, 09:41 AM
 
edawlem edawlem is offline
 

Newbie
  
Join Date: Sep 2009
Posts: 9
 

Default Breadcrumb Home Link

I have the x-cart at http://www.thevegetarianexpress.com/cart

I don't want to use the x-cart home.php anywhere. I've redirected the logo in the head.tpl to the site root. I also need to change the breadcrumb link (see below). Am I missing anything else?

In the breadcrumbs I want users to click on the "Vegetarian Express" or home link and have it take them to http://www.thevegetarianexpress.com without messing up the rest of the breadcrumbs. I've seen reference to this, but not with the path arrangement that I have.
__________________
Mel
X-Cart Pro 4.2.2
Reply With Quote
  #2  
Old 09-24-2009, 08:13 PM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: Breadcrumb Home Link

In the auth.php

you can able see the code like this.
PHP Code:
$location[] = array((!empty($lbl_site_name) ? $lbl_site_name $config["Company"]["company_name"]), "home.php"); 

in this remove the "home.php " and leave it blank or provide a link as you like.
Reply With Quote
  #3  
Old 09-25-2009, 09:43 AM
 
edawlem edawlem is offline
 

Newbie
  
Join Date: Sep 2009
Posts: 9
 

Default Re: Breadcrumb Home Link

This code is not in the auth.php file in 4.2
__________________
Mel
X-Cart Pro 4.2.2
Reply With Quote
  #4  
Old 09-25-2009, 10:09 AM
 
edawlem edawlem is offline
 

Newbie
  
Join Date: Sep 2009
Posts: 9
 

Default Re: Breadcrumb Home Link

I found what I needed here.

I'm hoping that covers everything... ??
__________________
Mel
X-Cart Pro 4.2.2
Reply With Quote
  #5  
Old 10-11-2009, 07:15 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Breadcrumb Home Link

How do I change the "company name" (x-cart root) name to simply "Home" in version 4.2.2? I've done this in 4.1.x versions but the code is different.

Also, how do I change the "::" in the page title?
__________________
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
  #6  
Old 10-11-2009, 07:34 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Breadcrumb Home Link

1. (never tried this one) In root/postauth.php find

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

and replace $config["Company"]["company_name"] with your wording

2. In root/include/func/func.core.php find

$html_page_title = implode(' :: ', $tmp);

and replace :: with your symbol
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 10-11-2009, 08:15 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Breadcrumb Home Link

$html_page_title = implode(' - ', $tmp); worked (although it took a little while to find)

Changing the postauth.php seems to remove the "root" (home.php) from the breadcrumb entirely. All I want to do is have it say something other than "our company name". This was done in v4.1.x as follows
Code:
{* $Id: location.tpl,v 1.14.2.2 2007/06/18 11:42:03 max Exp $ *} {if $location} <br /> <span class="NavigationPath"> {strip} {section name=position loop=$location} {* {if $location[position].1 ne "" }<a href="{$location[position].1|amp}" class="NavigationPath">{/if} *} {if $location[position].1 ne "" }{if $location[position].0 ne $config.Company.company_name}<a href="{$location[position].1}" class="NavigationPath">{else}<a href="{$http_location}/" class="NavigationPath">{/if}{/if} {if $location[position].0 eq $config.Company.company_name} Home {else} {$location[position].0} {/if} {if $location[position].1 ne "" }</a>{/if} {if not %position.last%}&nbsp;\&nbsp;{/if} {/section} {/strip} </span> <br /><br /> {/if}

but 4.2 doesn't seem to use "location.tpl" (at least it doesn't seem to change anything when I change it)
__________________
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
  #8  
Old 10-11-2009, 10:20 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Breadcrumb Home Link

It does work the way I posted it - replacing the $config["Company"]["company_name"] with whatever you want it to say

Here is the line I just tried and it works

$location[] = array((!empty($lbl_site_name) ? $lbl_site_name : "Home"), "home.php");
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 10-12-2009, 03:27 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Breadcrumb Home Link

That works, but it is not what I am looking for. It renames the site title to "Home". All I want is the breadcrumb to say "Home" for the root instead of the company name.
__________________
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
  #10  
Old 10-16-2009, 07:59 AM
 
autobulbs autobulbs is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Southampton, UK
Posts: 68
 

Default Re: Breadcrumb Home Link

in customer/bread_crumbs.tpl

replace

Code:
{foreach from=$location item=l name=location}

with

Code:
{foreach from=$location item=l name=location} {if $l.0 eq $config.Company.company_name} {assign var="locprint" value="Home"} {else} {assign var="locprint" value=$l.0} {/if}
__________________
Autobulbs Direct Ltd
X-Cart Version: 4.2.2
eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications
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:58 PM.

   

 
X-Cart forums © 2001-2020