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

Change bread crumb to start with "Home" not company name

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-15-2009, 03:15 AM
 
bionuts bionuts is offline
 

Senior Member
  
Join Date: Oct 2008
Posts: 109
 

Default Change bread crumb to start with "Home" not company name

I've just started work on a new store, which uses version 4.2. On my previous store (created with 4.1.11) I edited the location.tpl file to change the bread crumb to show "Home" at the beginning of the list, not the company name.

I'd like to make the same change to the 4.2 store, but find that the code in bread_crumbs.tpl is quite different from the previous version and that the code I used before does not work. Can anyone suggest a way to achieve what I want to do?

Thanks.
__________________
Four sites using X-Cart 5.4.x.x. Oh the joy
Reply With Quote
  #2  
Old 02-15-2009, 02:23 PM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: Change bread crumb to start with "Home" not company name

http://forum.x-cart.com/showthread.php?t=17807&highlight=breadcrumb+home
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
  #3  
Old 02-16-2009, 09:09 AM
 
chris@earmark chris@earmark is offline
 

Advanced Member
  
Join Date: Jan 2009
Posts: 42
 

Default Re: Change bread crumb to start with "Home" not company name


Is this the same process for 4.2 as the previous versions? bionuts question was referring to the change in 4.2.
__________________
x-cart 4.2.0
fancy categories
Reply With Quote
  #4  
Old 02-17-2009, 04:04 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Change bread crumb to start with "Home" not company name

bread crumbs are located in skin1/customer/bread_crumbs.tpl now
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #5  
Old 02-24-2009, 05:39 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Change bread crumb to start with "Home" not company name

The code in bread_crumbs.tpl and location.tpl are different. What would need to be done in bread_crumbs.tpl to change the bread crumb to start with "Home" and not "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
  #6  
Old 02-24-2009, 05:47 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Change bread crumb to start with "Home" not company name

replace {foreach}...{/foreach} block there with this:
Code:
{foreach from=$location item=l name=location} {if $l.1 && !$smarty.foreach.location.last} <a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $smarty.foreach.location.first}Home{else}{$l.0|escape}{/if}</a> {else} <font class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $smarty.foreach.location.first}Home{else}{$l.0|escape}{/if}</font> {/if} {if !$smarty.foreach.location.last} <span>::</span> {/if} {/foreach}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote

The following 4 users thank Victor D for this useful post:
GregMorris (07-30-2010), JWait (02-24-2009), Phoenix Tech (08-15-2009), willwinman (03-23-2009)
  #7  
Old 02-25-2009, 01:38 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Change bread crumb to start with "Home" not company name

there are 2 files now?
__________________
xcart 5.1.2
Reply With Quote
  #8  
Old 02-25-2009, 03:15 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Change bread crumb to start with "Home" not company name

No, for customer there is bread_crumbs.tpl only in 4.2.0
location.tpl is probably used in admin area since there is less changes in comparison with front-end.
IMHO templates stucture is more clear now
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #9  
Old 03-07-2009, 06:13 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Change bread crumb to start with "Home" not company name

Is there anyway to remove the breadcrumb completely from the homepage? Makes special offers look better. Please let me know.
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #10  
Old 03-07-2009, 06:28 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Change bread crumb to start with "Home" not company name

or can i show the homepage breadcrumb under the special offers and then in every other page show it back up above like normal? Thanks to all in advance.
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
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 04:33 AM.

   

 
X-Cart forums © 2001-2020