View Single Post
  #6  
Old 01-04-2013, 06:08 AM
 
sabinudash sabinudash is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 66
 

Default Re: which file to edit ?

Quote:
Originally Posted by balinor
Try:

{if $cat eq "x"}code to show{/if}

Replace x with the category id number. Haven't tested this with 4.4, but if that doesn't work we can try another smarty variable.

This works on 4.4.2. Thanks balinor.

How can I have this work for both a category and its subcategories? Now, this code shows featured products for a "x" category, but not the subcategories of "x".

I appreciate any help.
__________________
X-Cart 5.3.3.4 Multivendor
X-Cart 5.3.3.4 Business (Testing)
Reply With Quote