Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Isolating One Category

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-08-2004, 05:14 PM
 
TheCross TheCross is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 31
 

Default 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.
__________________
http://www.VantageStreet.com
Using X-Cart version 4.0.0
Reply With Quote
  #2  
Old 10-09-2004, 10:11 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

Code:
{if $cat == "1"} do this {else} do that {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 10-09-2004, 02:21 PM
 
TheCross TheCross is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 31
 

Default

Thanks a ton. So simple, yet so far from what I was doing. It works great.
__________________
http://www.VantageStreet.com
Using X-Cart version 4.0.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:23 PM.

   

 
X-Cart forums © 2001-2020