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
  #1  
Old 05-27-2005, 12:02 AM
 
Kshock Kshock is offline
 

Member
  
Join Date: May 2005
Posts: 11
 

Default Remove Location Breadcrumbs from Home

Is there any way that I can prevent displaying the breadcrumb navigation links that appear at the top of each store page just on the store Home page? That's the only page I don't want them to appear.

I presume there's some conditional I might add to the /customer/home.tpl template where this line appears:

Code:
{include file="location.tpl"}

But I don't know if there's a global var I can check in Smarty that tells me whether or not I'm currently viewing the store home page??

Thanks.
__________________
X-Cart Gold 4.0.13
Reply With Quote
  #2  
Old 05-27-2005, 03:37 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

look in home_main.tpl see the elseif statements. look for the one that includes welcome.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 05-27-2005, 11:02 AM
 
Kshock Kshock is offline
 

Member
  
Join Date: May 2005
Posts: 11
 

Default

Thanks for the tip, Shan.

For anyone interested, this is how I turned off the breadcrumbs on the store homepage only: In the /customer/home.tpl file, replace this line...

Code:
{include file="location.tpl"}

...with these lines...

Code:
{if $main ne "catalog" or $current_category.category ne ""} {include file="location.tpl"} {/if}

Now the breadcrumb navigation links appear on all pages except for the Store homepage.
__________________
X-Cart Gold 4.0.13
Reply With Quote

The following user thanks Kshock for this useful post:
lash (11-04-2009)
  #4  
Old 12-11-2005, 10:18 AM
 
puzzles puzzles is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 9
 

Default

A follow up on this - how do we have the breadcrumbs appear *only* on the product pages?

So they don't show up:
- on the home page (got that one covered!)
- on the category pages
- on the non shopping pages we create (like customer service policies and contact us)
- on the search page
__________________
Software: X-Cart Gold
Version: 4.1.0
Reply With Quote
  #5  
Old 12-11-2005, 10:22 AM
 
puzzles puzzles is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 9
 

Default

Aha! Figured it out!

{if $product.productid ne ""}
{include file="location.tpl"}
{/if}
__________________
Software: X-Cart Gold
Version: 4.1.0
Reply With Quote
  #6  
Old 01-25-2008, 09:34 PM
  divinechic's Avatar 
divinechic divinechic is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 78
 

Default Re: Remove Location Breadcrumbs from Home

Works great for Gold Version 4.1.9. Thanks
__________________
X-Cart Gold version 4.1.9
Reply With Quote
  #7  
Old 02-07-2008, 02:59 PM
  swifty's Avatar 
swifty swifty is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 38
 

Default Re: Remove Location Breadcrumbs from Home

thanks, i've been looking for this.
__________________
xCart 4.0.17
PHP 5.2.1
MySQL Server 4.0.26
MySQL Client 4.1.22
web Server:
Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
Reply With Quote
  #8  
Old 02-07-2008, 03:45 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Remove Location Breadcrumbs from Home

Note for products, there may be instances where $products.productid is defined and the user is not on the product page, so it is better to use this for product pages only:

{if $main eq "product"}
{include file="location.tpl"}
{/if}
Reply With Quote
  #9  
Old 02-07-2008, 06:26 PM
  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

{if $main ne "catalog" or $current_category.category ne ""}
What does the 'ne' ? mean
__________________
xcart 5.1.2
Reply With Quote
  #10  
Old 02-13-2008, 07:12 AM
 
Shopkeeper09 Shopkeeper09 is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 56
 

Default Re: Remove Location Breadcrumbs from Home

How do you highlight the current page in the breadcrumb trail?

ETA: Found my answer - go to the css and find the .NavigationPath class and change the font color, decoration, etcetera...
Any hard coding changes you would like to make would be in the location.tpl file under skin1.
__________________
Moving over to a SaaS solution.
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:04 AM.

   

 
X-Cart forums © 2001-2020