| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Show only in category pages | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Anyone know the {if} statement for showing something only in category pages, not on home page or product detail pages?
__________________
hollaratbear Xcart Gold 4.2.1 Newbie |
|||||||
#2
|
|||||||
|
|||||||
![]() Try it -
{if $main eq "catalog"} Your code {/if} |
|||||||
|
#3
|
|||||||
|
|||||||
![]() For some reason, that's causing my code to show up on the homepage as well. That's been my problem. Any code to explicitly eliminate it from the homepage?
__________________
hollaratbear Xcart Gold 4.2.1 Newbie |
|||||||
#4
|
|||||||
|
|||||||
![]() Nevermind, got it. For those newbies interested...
{if $main eq "catalog" and $current_category.category ne ""} code code code {/if} will show code only in categories.
__________________
hollaratbear Xcart Gold 4.2.1 Newbie |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|