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)
-   -   Remove Location Breadcrumbs from Home (https://forum.x-cart.com/showthread.php?t=14223)

DOD467 04-07-2009 11:50 AM

Re: Remove Location Breadcrumbs from Home
 
Thanks Balinor, once again...

I am having a problem when I have the following:

{if $main ne "catalog" or $current_category.category ne ""}
{include file="shared/navigation/breadcrumbs.tpl"}{/if}
{if $main ne "catalog" or $current_category.category ne ""}
Welcome! {/if}

"Welcome" does not show, any ideas?

balinor 04-07-2009 12:24 PM

Re: Remove Location Breadcrumbs from Home
 
Please look at my code again, you didn't copy it exactly.

DOD467 04-07-2009 12:26 PM

Re: Remove Location Breadcrumbs from Home
 
Yes I did, but then the breadcrumbs do not show up on the other pages. This is why I need it changed.

THnaks

balinor 04-07-2009 12:28 PM

Re: Remove Location Breadcrumbs from Home
 
What do you want to do? Show welcome on the home page and location breadcrumbs on the other pages? If so, use this:

{if $main eq "catalog" and $current_category.category eq ""}
Welcome!{else}{include file="shared/navigation/breadcrumbs.tpl"}{/if}

Meredith Martin Davis 07-01-2009 09:49 AM

Re: Remove Location Breadcrumbs from Home
 
To add on to all of this, how can I get breadcrumbs to show up only on product pages and sub-category pages?

At the moment, for products only, I have:

{if $main eq "product"}
{include file="location.tpl"}
{/if}

Thanks!

lash 11-04-2009 07:01 AM

Re: Remove Location Breadcrumbs from Home
 
Quote:

Originally Posted by Jon
{if $main eq "product" OR ($main eq "catalog" AND $current_category.categoryid gt 0)}
{include file="location.tpl"}
{/if}


Where do I add this code?

ARW VISIONS 11-04-2009 07:05 AM

Re: Remove Location Breadcrumbs from Home
 
you replace this
{include file="location.tpl"}

with this

{if $main eq "product" OR ($main eq "catalog" AND $current_category.categoryid gt 0)}
{include file="location.tpl"}
{/if}

location.tpl is probably in home.tpl

lash 11-04-2009 07:15 AM

Re: Remove Location Breadcrumbs from Home
 
Quote:

Originally Posted by Ashley
you replace this
{include file="location.tpl"}

with this

{if $main eq "product" OR ($main eq "catalog" AND $current_category.categoryid gt 0)}
{include file="location.tpl"}
{/if}

location.tpl is probably in home.tpl


Thanks I will try that. I guess it is the same place where you remove the breadcrumb for home, which I already did and it looks so much better..

lash 11-04-2009 07:41 PM

Re: Remove Location Breadcrumbs from Home
 
Thanks for all contributions in this thread. Works like a charm and no way I would have been able to figure that out myself.


All times are GMT -8. The time now is 02:47 PM.

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