View Single Post
  #1  
Old 02-25-2005, 04:19 PM
 
gbut gbut is offline
 

Newbie
  
Join Date: Feb 2005
Posts: 3
 

Default Subcategories: reference to parentid

Pardon my newbieness - just getting started w/x-cart...

I'm trying to do a conditional in customer/categories.tpl and need to detect current subcategory's parent id. I've seen references in the forums to $current_category.parentid but this isn't working for me (it's null).

Is there a mod I need to make to the query for $categories_data in include/categories.php to include the parent info? I don't see anything in there for parent.

Thanks!
__________________
------------------
~Gregg

X-Cart 4.0.12
Apache 1.3.33
mySQL 4.0.22
PHP 4.3.10
Reply With Quote