| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Help with IF statement for category display | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I want to display a column on the right on certain pages. I have this column in home.tpl and I have successfully managed to get it to not be displayed on the home page of the site, but cannot figure out how to remove it from other pages. Here is the code I have at the moment: {if $main eq "catalog" and $current_category.category eq ""}{else}<td valign="top" class="VertMenuRightColumn"> {include file="symbols.tpl"}</td>{/if} Ideally I don't want the column to appear on any pages except certain category pages (but not all category pages). Let's say I want it to show on category 1, 5, 9, and 11. What is the correct code to use? Thanks for your time.
__________________
Version: 4.4 OS: Linux |
|||||||
#2
|
|||||||
|
|||||||
![]()
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() {if $main eq "catalog" AND ($current_category.categoryid eq "1" OR $current_category.categoryid eq "5" OR $current_category.categoryid eq "9" OR $current_category.categoryid eq "11")}
Show Column {/if} |
|||||||||
#4
|
|||||||
|
|||||||
![]() Thanks Jon. It works a treat.
Although I would also like the right column to appear on ALL product pages too. What code do I add to make this happen? Thanks a lot for your help with this.
__________________
Version: 4.4 OS: Linux |
|||||||
|
|||
X-Cart forums © 2001-2020
|