| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to use if statement for category page but not product page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to use if statement for category page but not product page
Hi,
I am using {if $cat eq "xxx"} code {/if} to put code in the header of a specific category page... However I am finding that it is also putting it in all product pages of any products that are in that category! How do I specify it so that it will only appear on the category page, but not on the product pages of products that belong to that category? Thanks for your help,
__________________
version 4.1.7 |
|||||||
#2
|
|||||||
|
|||||||
Re: How to use if statement for category page but not product page
{if $cat eq "xxx" && $main ne "product"} ... {/if}
__________________
xcartmods.co.uk |
|||||||
|
|||
X-Cart forums © 2001-2020
|