| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Content on home page only? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi folks,
Anyone out there know what my {if} statement would look like if I only wanted to include something on the 'home' (home.php) page? e.g.: Code:
I'm sure this is blindingly obvious but i've searched here and nothing's returned for 'home'(!). Cheers,
__________________
X-Cart 4.0.17 ezUpsell PHP 4.4.1 MySQL 4.0.25-standard Apache 1.3.34 Linux |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Hi,
believe you need something like this: {if $main eq "catalog" and $current_category.category eq ""} STUFF FOR HOME PAGE HERE {else} STUFF FOR OTHER PAGES HERE {/if} put this on customer/home.tpl For example this: {if $main eq "catalog" and $current_category.category eq ""} {else} {include file="location.tpl"} {/if} removes the location bar from the home page. I think this will work; try searching the forum for something like that if you want some more info on it, but I think that will get you in the right direction.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
![]() Hi Paul,
That's done the trick, thanks. (you were right - this has already been posted under a slightly cryptic topic title here: http://forum.x-cart.com/viewtopic.php?t=18807&highlight=currentcategory+ca tegory )
__________________
X-Cart 4.0.17 ezUpsell PHP 4.4.1 MySQL 4.0.25-standard Apache 1.3.34 Linux |
|||||||
|
|||
X-Cart forums © 2001-2020
|