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)
-   -   how to edit navigation path (location.tpl)? (https://forum.x-cart.com/showthread.php?t=10217)

sarahnk 11-05-2004 09:22 AM

how to edit navigation path (location.tpl)?
 
How do i edit the location.tpl so that the Company name does not show up?

This
Category : Item

Instead of this:
CompanyName: Category : Item

finestshops 11-06-2004 11:05 AM

Re: how to edit navigation path (location.tpl)?
 
Quote:

Originally Posted by sarahnk
How do i edit the location.tpl so that the Company name does not show up?
Category : Item
Instead of this:
CompanyName: Category : Item


Try:

Code:

{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *}
{if $location}
<FONT class="NavigationPath">
{strip}
{section name=position loop=$location}
{if $location[position].1 ne "" }<A href="{$location[position].1}" class="NavigationPath">{/if}
{if not %position.first%}{$location[position].0}{else}HOME{/if}
{if $location[position].1 ne "" }</A>{/if}
{if not %position.last%}>{/if}
{/section}
{/strip}
</FONT>



{/if}


Just remove "HOME" text if you do not want anything there.

CopperB 03-14-2005 06:08 PM

I want to remove the location on the homepage only. In my location.tpl there is no "Home" reference as 27stars mentioned.

Code:

{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *}
{if $location}
<FONT class="NavigationPath">
{strip}
{section name=position loop=$location}
{if $location[position].1 ne "" }<A href="{$location[position].1}" class="NavigationPath">{/if}
{$location[position].0}
{if $location[position].1 ne "" }</A>{/if}
{if not %position.last%}::{/if}
{/section}
{/strip}
</FONT>



{/if}


Any ideas? Thanks

finestshops 03-14-2005 07:09 PM

Quote:

Originally Posted by CopperB
I want to remove the location on the homepage only. In my location.tpl there is no "Home" reference as 27stars mentioned.


try change first and last lines to:

Code:

{if $main eq "catalog" and $current_category.category eq ""}{else}{if $location}

....

{/if}{/if}


CopperB 03-15-2005 12:00 PM

Thanks for the quick reply. I'm not sure what you mean by first and last lines. What 2 lines of the code would I replace with

Code:

{if $main eq "catalog" and $current_category.category eq ""}{else}{if $location}

....

{/if}{/if}


Thanks again.

finestshops 03-17-2005 01:35 PM

Quote:

Originally Posted by CopperB
Thanks for the quick reply. I'm not sure what you mean by first and last lines. What 2 lines of the code would I replace with
Thanks again.


Try this:

Code:

{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *}
{if $main eq "catalog" and $current_category.category eq ""}{else}{if $location}
<FONT class="NavigationPath">
{strip}
{section name=position loop=$location}
{if $location[position].1 ne "" }<A href="{$location[position].1}" class="NavigationPath">{/if}
{$location[position].0}
{if $location[position].1 ne "" }</A>{/if}
{if not %position.last%}::{/if}
{/section}
{/strip}
</FONT>


 
{/if}{/if}


CopperB 03-17-2005 01:56 PM

Worked great. Exactly what I was after.

Thanks :D

Tristan 07-28-2005 03:55 AM

Hello

Thanks for the info on how to edit the location.tpl

Is it possible to edit this further?
Basically i would like to make another location.tpl and place this in related_products.tpl.

Code:

{include file="location2.tpl"}

I am trying to get location2.tpl to only show the category(clickable) of the current product you are viewing. Currently it shows:

Home :: The Category :: The Product Name

Any help would be greatly appreciated
Thank You


All times are GMT -8. The time now is 12:05 AM.

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