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)
-   -   Change bread crumb to start with "Home" not company name (https://forum.x-cart.com/showthread.php?t=45583)

cflsystems 03-07-2009 07:30 PM

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}


mrerotic 03-07-2009 07:38 PM

Re: Change bread crumb to start with "Home" not company name
 
thank you sir :)

Thedae2k 03-08-2009 12:00 AM

Re: Change bread crumb to start with "Home" not company name
 
location.tpl

Marc Gold 06-23-2009 08:44 AM

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}

Victor D 06-24-2009 03:30 AM

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}


dwpers 08-12-2009 09:15 AM

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╒

ARW VISIONS 08-12-2009 09:21 AM

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.

ARW VISIONS 08-12-2009 09:24 AM

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

dwpers 08-12-2009 09:26 AM

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}


cflsystems 08-12-2009 09:29 AM

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}



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

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