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
  #11  
Old 03-07-2009, 07:30 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

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

This will remove them from the home page and show on any other page

Code:
{if $main ne "catalog" || $current_category.category ne ""} {include file="customer/bread_crumbs.tpl"} {/if}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #12  
Old 03-07-2009, 07:38 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

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

thank you sir
__________________
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
  #13  
Old 03-08-2009, 12:00 AM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

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

location.tpl
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
  #14  
Old 06-23-2009, 08:44 AM
 
Marc Gold Marc Gold is offline
 

Member
  
Join Date: Oct 2006
Posts: 11
 

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

Hi

We do not want to show the product as the last item on the breadcrumb, so have commented this out as you will see from the script below.

However, now the last item, isnt the last item in the variable. Hence the seperator always shows and I cant style the last one seperately.

Can anyone help with what changes I need to apply to the PHP to remove the product as the last one in the loop.

Thanks

{if $location}
<div id="location" style="padding-left:10px;">
{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|esc ape}{/if}</a>
{else}
{* <font class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</font> *}
{/if}
{if $smarty.foreach.location.last neq "1"}
<span>>></span>
{else}

{/if}
{/foreach}
</div>
{/if}
__________________
www.i-point.co.uk
www.novelties4parties.co.uk - 4.1.8
www.edworthys.co.uk - 4.1.5
Inkntoner.co.uk - 4.1.8 / 4.7
ROK Universal 4.3
Displaysense - 4.2
Xcart Ver: 4.7.3
Reply With Quote
  #15  
Old 06-24-2009, 03:30 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

try this
Code:
{if $location} <div id="location" style="padding-left:10px;"> {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|esc ape}{/if}</a> {else} {if $main ne 'product'} <font class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</font> {/if} {/if} {if $smarty.foreach.location.last neq "1"} <span>>></span> {else} {/if} {/foreach} </div> {/if}
__________________
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
  #16  
Old 08-12-2009, 09:15 AM
 
dwpers dwpers is offline
 

Senior Member
  
Join Date: Aug 2009
Location: Washington D.C.
Posts: 136
 

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

To sort of piggy-back on this thread. Is there any possible way to not display the breadcrumbs on the index only? It makes no sense to have breadcrumbs on the index page... just my 2╒
__________________
X-Cart Pro 4.2.2
Reply With Quote
  #17  
Old 08-12-2009, 09:21 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 must be 100 post on how to do this. Please search. If you can't find it then post a thread.
__________________
xcart 5.1.2
Reply With Quote
  #18  
Old 08-12-2009, 09:24 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

as a matter of fact it in the thread already. read up about 4 or 5 posts.. lol
__________________
xcart 5.1.2
Reply With Quote
  #19  
Old 08-12-2009, 09:26 AM
 
dwpers dwpers is offline
 

Senior Member
  
Join Date: Aug 2009
Location: Washington D.C.
Posts: 136
 

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

Quote:
Originally Posted by Ashley
There must be 100 post on how to do this. Please search. If you can't find it then post a thread.

Instead of creating 100 + 1 threads on the subject I thought I would ask in an existing thread because I've tried the methods described previously (including the one in THIS thread) and have not had any luck with it. So, instead of chastising me, it would be more productive to only respond if you have something helpful to say. Please don't treat me like I'm a forum newbie just because I'm new to THESE forums.

To clarify this solution does NOT work for me

Code:
{if $main ne "catalog" || $current_category.category ne ""} {include file="customer/bread_crumbs.tpl"} {/if}
__________________
X-Cart Pro 4.2.2
Reply With Quote
  #20  
Old 08-12-2009, 09:29 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

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

In skin1/customer/home.tpl replace the call for breadcrumbs with this
Code:
{if $main ne "catalog" || $current_category.category ne ""} {include file="customer/bread_crumbs.tpl"} {/if}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
dwpers (08-12-2009)
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 05:23 AM.

   

 
X-Cart forums © 2001-2020