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)

Kshock 05-27-2005 12:02 AM

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.

shan 05-27-2005 03:37 AM

look in home_main.tpl see the elseif statements. look for the one that includes welcome.tpl

Kshock 05-27-2005 11:02 AM

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.

puzzles 12-11-2005 10:18 AM

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

puzzles 12-11-2005 10:22 AM

Aha! Figured it out!

{if $product.productid ne ""}
{include file="location.tpl"}
{/if}

divinechic 01-25-2008 09:34 PM

Re: Remove Location Breadcrumbs from Home
 
Works great for Gold Version 4.1.9. Thanks

swifty 02-07-2008 02:59 PM

Re: Remove Location Breadcrumbs from Home
 
thanks, i've been looking for this.

Jon 02-07-2008 03:45 PM

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}

ARW VISIONS 02-07-2008 06:26 PM

Re: Remove Location Breadcrumbs from Home
 
{if $main ne "catalog" or $current_category.category ne ""}
What does the 'ne' ? mean

Shopkeeper09 02-13-2008 07:12 AM

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.


All times are GMT -8. The time now is 06:07 PM.

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