View Single Post
  #2  
Old 03-26-2005, 07:05 PM
 
International Living International Living is offline
 

Member
  
Join Date: Mar 2005
Posts: 23
 

Default

figured it out -- thought i'd post it here in case anyone was curious.

in categories.php, the code read:

Code:
if ($short_list) { $to_search = "$sql_tbl[categories].categoryid,$sql_tbl[categories].parentid,$sql_tbl[categories].categoryid_path,$sql_tbl[categories].category,$sql_tbl[categories].product_count,$sql_tbl[categories].avail,$sql_tbl[categories].order_by"; } else { $to_search = "$sql_tbl[categories].*"; }

i added the field i needed (description) to the SQL statement like this:

Code:
if ($short_list) { $to_search = "$sql_tbl[categories].categoryid,$sql_tbl[categories].description,$sql_tbl[categories].parentid,$sql_tbl[categories].categoryid_path,$sql_tbl[categories].category,$sql_tbl[categories].product_count,$sql_tbl[categories].avail,$sql_tbl[categories].order_by"; } else { $to_search = "$sql_tbl[categories].*"; }

this then allowed me to use

Code:
{$categories[cat_num].description}

in my categories.tpl
__________________
x-cart-Version 4.1.10
Reply With Quote