Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove Location Breadcrumbs from Home

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 04-07-2009, 11:50 AM
  DOD467's Avatar 
DOD467 DOD467 is offline
 

Member
  
Join Date: Apr 2008
Posts: 16
 

Default 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?
Reply With Quote
  #22  
Old 04-07-2009, 12:24 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Remove Location Breadcrumbs from Home

Please look at my code again, you didn't copy it exactly.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #23  
Old 04-07-2009, 12:26 PM
  DOD467's Avatar 
DOD467 DOD467 is offline
 

Member
  
Join Date: Apr 2008
Posts: 16
 

Default 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
Reply With Quote
  #24  
Old 04-07-2009, 12:28 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #25  
Old 07-01-2009, 09:49 AM
 
Meredith Martin Davis Meredith Martin Davis is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 70
 

Default 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!
__________________
4.1.8
Reply With Quote
  #26  
Old 11-04-2009, 07:01 AM
 
lash lash is offline
 

Senior Member
  
Join Date: Oct 2006
Posts: 138
 

Default 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?
__________________
4.1.9
www.lash.se
Reply With Quote
  #27  
Old 11-04-2009, 07:05 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: 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
__________________
xcart 5.1.2
Reply With Quote

The following user thanks ARW VISIONS for this useful post:
lash (11-04-2009)
  #28  
Old 11-04-2009, 07:15 AM
 
lash lash is offline
 

Senior Member
  
Join Date: Oct 2006
Posts: 138
 

Default 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..
__________________
4.1.9
www.lash.se
Reply With Quote
  #29  
Old 11-04-2009, 07:41 PM
 
lash lash is offline
 

Senior Member
  
Join Date: Oct 2006
Posts: 138
 

Default 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.
__________________
4.1.9
www.lash.se
Reply With Quote
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 01:21 AM.

   

 
X-Cart forums © 2001-2020