X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to use if statement for category page but not product page (https://forum.x-cart.com/showthread.php?t=67266)

snowboard 07-03-2013 04:18 AM

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,

PhilJ 07-03-2013 04:23 AM

Re: How to use if statement for category page but not product page
 
{if $cat eq "xxx" && $main ne "product"} ... {/if}


All times are GMT -8. The time now is 04:58 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.