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)

bionuts 02-15-2009 03:15 AM

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.

Thedae2k 02-15-2009 02:23 PM

Re: Change bread crumb to start with "Home" not company name
 
http://forum.x-cart.com/showthread.php?t=17807&highlight=breadcrumb+home

chris@earmark 02-16-2009 09:09 AM

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.

Victor D 02-17-2009 04:04 AM

Re: Change bread crumb to start with "Home" not company name
 
bread crumbs are located in skin1/customer/bread_crumbs.tpl now

JWait 02-24-2009 05:39 AM

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"?

Victor D 02-24-2009 05:47 AM

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}


ARW VISIONS 02-25-2009 01:38 AM

Re: Change bread crumb to start with "Home" not company name
 
there are 2 files now?

Victor D 02-25-2009 03:15 AM

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

mrerotic 03-07-2009 06:13 PM

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.

mrerotic 03-07-2009 06:28 PM

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.


All times are GMT -8. The time now is 11:20 AM.

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