| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Altering location.tpl & removing from home page only | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() At http://server.npserver2.com/~shop/ I have put the breadcrumbs back on my site, and have altered them (putting the words "You Are Here" in front) in the location.tpl file. I also know how to alter the css, so I'm fine there.
What I can't figure out how to do is to change the 'Shop Naturally Healthy Households' to say HOME instead. I know changing the company name will do this, but I can't have the word HOME inserted everywhere I need the company name to go. I also don't want the breadcrumbs to display on the front page, but I want them everywhere else. How do I do this? I have seen it done on other sites. Do I have to remove {include file="location.tpl"} from it's current spot on the customer/home.tpl file and put it in the product and the category pages by hand? I'm just not sure which templates and where, each time I have tried, I failed. Version 4.1.11 Thanks ![]()
__________________
Version 4.1.6 to 4.1.11 |
|||||||
#2
|
|||||||||
|
|||||||||
![]()
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#3
|
|||||||
|
|||||||
![]() I actually want to exclude something from the homepage, and also need to change the name of the shop in the first part of the breadcrumb. I couldn't find anything in that post to help me. Thanks for the pointer though. That may come in handy elsewhere.
__________________
Version 4.1.6 to 4.1.11 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() well, you want to test for the homepage, and if it's not the homepage, display the breadcrumbs...
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#5
|
|||||||
|
|||||||
![]() I don't understand exactly where this code is supposed to go. While I'm not too bad customising x-cart, the understanding of this particular piece of code is beyond me. I know very little about PHP.
__________________
Version 4.1.6 to 4.1.11 |
|||||||
#6
|
|||||||
|
|||||||
![]() Quote:
The if statement for the homepage is: {if $main eq "catalog" and $current_category.category eq ""} make sure you put a closing {/if} You can also use an {else} or {elseif} Read all about if/then statements here: http://forum.x-cart.com/showthread.php?t=8881
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Quote:
In your home.tpl.. you need an if statement so IF its the homepage, don't put the location ELSE put the location file
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#8
|
|||||||
|
|||||||
![]() Ah, now I'm grasping the concept. It's almost midnight here. I think I might sleep on it and start fiddling with the code in the morning.
Thanks for your help. Always good to learn a new trick ![]()
__________________
Version 4.1.6 to 4.1.11 |
|||||||
|
|||
X-Cart forums © 2001-2020
|