fabriccut100 Posted July 6, 2007 Share Posted July 6, 2007 I'm creating a new site and would like to know if this cahnge can be made change the word Categories to whatever topic is being shown in this case it would say By Color can anyone help or is this something that cannot be done, I thank you all for any help with this Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2007 Share Posted July 6, 2007 <?php $cat_q = tep_db_query('select categories_name from '.TABLE_CATEGORIES_DESCRIPTION.' where categories_id = '.(int)$current_category_id.' and language_id = '.(int)$languages_id); $cat = tep_db_fetch_array($cat_q); Put that code into index.php in section "nested", and in this section change <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> to give <td class="pageHeading"><?php echo $cat['categories_id']; ?></td> Link to comment Share on other sites More sharing options...
fabriccut100 Posted July 6, 2007 Author Share Posted July 6, 2007 Thanks so much for your help I will try this, Thank You <?php $cat_q = tep_db_query('select categories_name from '.TABLE_CATEGORIES_DESCRIPTION.' where categories_id = '.(int)$current_category_id.' and language_id = '.(int)$languages_id); $cat = tep_db_fetch_array($cat_q); Put that code into index.php in section "nested", and in this section change <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> to give <td class="pageHeading"><?php echo $cat['categories_id']; ?></td> Link to comment Share on other sites More sharing options...
fabriccut100 Posted July 6, 2007 Author Share Posted July 6, 2007 I've tried your code and maybe I have it in the wrong place but I looked for where it says nested and when I try to run it I get this error Parse error: parse error, unexpected '<' I guess I have it in the wrong place there are only 2 places where it says nested here on line 26 and on line 58 where I have put your code it says this: 1) $category_depth = 'nested'; // navigate through the categories 2) if ($category_depth == 'nested') { $category_query = tep_db_query("select cd.categories_name,......... so I'm not exactly sure where it goes, sorry to bug you but any help would be great Thanks so much <?php $cat_q = tep_db_query('select categories_name from '.TABLE_CATEGORIES_DESCRIPTION.' where categories_id = '.(int)$current_category_id.' and language_id = '.(int)$languages_id); $cat = tep_db_fetch_array($cat_q); Put that code into index.php in section "nested", and in this section change <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> to give <td class="pageHeading"><?php echo $cat['categories_id']; ?></td> Link to comment Share on other sites More sharing options...
fabriccut100 Posted July 6, 2007 Author Share Posted July 6, 2007 I got it!!! Thanks again for your help Thanks so much for your help I will try this, Thank You Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.