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)
-   -   Isolating One Category (https://forum.x-cart.com/showthread.php?t=9747)

TheCross 10-08-2004 05:14 PM

Isolating One Category
 
I am looking to have a banner/link at the top of the subcategory listing if the category selected is "3". Every thing I have tried isnt working. Can anyone help me? Below I have listed where and what I am editing in my attempts.

File I was editing:

Code:

/customer/main/subcategories.tpl

Code I was working with:

Code:

{if $current_category.category  eq "3"}
{include file="customer/main/specialbanner.tpl"}
{/if}


Please help, I know it should be pretty simple, yet it is giving me fits trying to figure it out.

PhilJ 10-09-2004 10:11 AM

Code:

{if $cat == "1"}
do this
{else}
do that
{/if}


TheCross 10-09-2004 02:21 PM

Thanks a ton. So simple, yet so far from what I was doing. It works great.


All times are GMT -8. The time now is 01:55 PM.

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