View Single Post
  #4  
Old 09-04-2009, 05:53 AM
 
Mark UK Mark UK is offline
 

Member
  
Join Date: Jul 2009
Posts: 17
 

Default Re: Targeting a whole Sub-Category with one if statement?

Hi Steve,

Thing is I'm not using fields, the unordered list is hardcoded into the product page using if statements to show and not show, also using this method to show a box below called tank mates. I'm trying to find a easier way of saying if all products are under one subcategory, show list and tank mates. At the moment I'm using the above code which works well with first chain of sub-category, sub-sub-category, but if my client adds a new sub-sub-sub category I have to go in manually and add '$current_category.parentid == 258' for each sub-sub-sub category.

I was hoping to find a statement that say's 'all under this sub-category is allowed' type of deal.

Hope that all makes sense, first X-Cart site so I'm still learning

Thanks for your help!


http://img197.imageshack.us/img197/5682/subcat.jpg
__________________
X-Cart Gold Version 4.2.1
Reply With Quote