| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Remove Location Breadcrumbs from Home | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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:
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 |
|||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
#3
|
|||||||
|
|||||||
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:
...with these lines... Code:
Now the breadcrumb navigation links appear on all pages except for the Store homepage.
__________________
X-Cart Gold 4.0.13 |
|||||||
|
#4
|
|||||||
|
|||||||
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 |
|||||||
#5
|
|||||||
|
|||||||
Aha! Figured it out!
{if $product.productid ne ""} {include file="location.tpl"} {/if}
__________________
Software: X-Cart Gold Version: 4.1.0 |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Remove Location Breadcrumbs from Home
Works great for Gold Version 4.1.9. Thanks
__________________
X-Cart Gold version 4.1.9 |
|||||||||
#7
|
|||||||||
|
|||||||||
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 |
|||||||||
#8
|
|||||||||
|
|||||||||
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} |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: Remove Location Breadcrumbs from Home
{if $main ne "catalog" or $current_category.category ne ""}
What does the 'ne' ? mean
__________________
xcart 5.1.2 |
|||||||||
#10
|
|||||||
|
|||||||
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. |
|||||||
|
|||
X-Cart forums © 2001-2020
|