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)

ecommerce 05-26-2008 11:27 AM

Re: Remove Location Breadcrumbs from Home
 
Quote:

Originally Posted by Jon
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}


Guys,
I want the breadcrumb to appear ONLY in the catergories pages
and in the products pages.

What would be the code?

Thanks

Jon 05-26-2008 11:30 AM

Re: Remove Location Breadcrumbs from Home
 
{if $main eq "product" OR ($main eq "catalog" AND $current_category.categoryid gt 0)}
{include file="location.tpl"}
{/if}

merbay 05-26-2008 05:19 PM

Re: Remove Location Breadcrumbs from Home
 
Thanks to Kshock for such easy to follow directions for a newbie!

ecommerce 05-26-2008 08:36 PM

Re: Remove Location Breadcrumbs from Home
 
Thanks JON!

bpearch 10-08-2008 12:26 AM

Re: Remove Location Breadcrumbs from Home
 
Thanks for the Mod, should be standard on x-cart gives the first page a really good look
Thanks again Colin
www.jollybranding.co.uk
www.coolblades.co.uk

JWait 10-08-2008 06:11 AM

Re: Remove Location Breadcrumbs from Home
 
There are things that should be standard, and things that shouldn't. This is one of the latter. It is easy enough to modify the way it is if you want, and would be difficult to figure out where to add it if you don't think it gives the first page "a really good look".

And to Ashley... ne is "not equal".

royng 10-10-2008 08:51 AM

Re: Remove Location Breadcrumbs from Home
 
Thanks! Kshock http://forum.x-cart.com/images/statusicon/user_offline.gif vbmenu_register("postmenu_83256", true);

U are better than the support desk!

ARW VISIONS 10-10-2008 10:07 AM

Re: Remove Location Breadcrumbs from Home
 
Quote:

Originally Posted by JWait
There are things that should be standard, and things that shouldn't. This is one of the latter. It is easy enough to modify the way it is if you want, and would be difficult to figure out where to add it if you don't think it gives the first page "a really good look".

And to Ashley... ne is "not equal".


Ummm... I made that post in February. I figured it out since then. but thanks anyways.

8)8)8)

DOD467 04-07-2009 10:53 AM

Re: Remove Location Breadcrumbs from Home
 
what if you wanted to replace the breadcrumbs with the word "Welcome!" on the home page?

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

balinor 04-07-2009 11:33 AM

Re: Remove Location Breadcrumbs from Home
 
{if $main eq "catalog" and $current_category.category eq ""}
Welcome!
{/if}


All times are GMT -8. The time now is 04:58 AM.

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