eghydro Posted March 31, 2005 Share Posted March 31, 2005 is there a way to just edit out the cascading categories in the left column?...I would like the categories to work like this: http://www.bghydro.com/bgh anyone? Link to comment Share on other sites More sharing options...
ksaun Posted March 31, 2005 Share Posted March 31, 2005 is there a way to just edit out the cascading categories in the left column?...I would like the categories to work like this: http://www.bghydro.com/bgh anyone? <{POST_SNAPBACK}> Just go into your Admin control panel and delete the sub catagories you don't want. Its that simple :thumbsup: My Favorite Quote from a movie. Question: How do you know women sooo well? Answer: I think of a man, then take away reason and accountability. Link to comment Share on other sites More sharing options...
eghydro Posted March 31, 2005 Author Share Posted March 31, 2005 Just go into your Admin control panel and delete the sub catagories you don't want. Its that simple :thumbsup: <{POST_SNAPBACK}> I know that :thumbsup: guess the link wasn't the best example... heres another...same site... http://www.bghydro.com/BGH/items.asp?Cc=HL&Bc= I want the sub-categories to not show up in the left column, but in the middle of the page like it does now...just dont want the sub-categories to show under the main categories...am I making sense? :D lol Link to comment Share on other sites More sharing options...
tobycatlin Posted March 31, 2005 Share Posted March 31, 2005 its not ideal but you could hardcode the category links. re-write catalog/includes/boxes/categories.php so that it is a table of links that have the correct cPath to the category eg <?php echo '<a href="' . tep_href_link($page = 'index.php', 'cPath=31'); ?>">Name of category</a> I ain't got time to bleed Link to comment Share on other sites More sharing options...
lokksta Posted March 31, 2005 Share Posted March 31, 2005 is there a way to just edit out the cascading categories in the left column?...I would like the categories to work like this: http://www.bghydro.com/bgh anyone? <{POST_SNAPBACK}> Delete this code from boxes/catagories.php: //------------------------ if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } This will prevent the sub catagories from appearing in the catagories infobox, and you will still have the sub cats on the main index page. Works for me. hth Link to comment Share on other sites More sharing options...
lokksta Posted April 1, 2005 Share Posted April 1, 2005 You may have to also change the catagories code in index.php if you don't like the current layout. You can change the current 3 products per row to 1 (like your example) in: Admin > My Store > Max Values > Categories To List Per Row Also, you may want to try a contrib like: http://www.oscommerce.com/community/contributions,1373 To get catagory descriptions like in your example. hth Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.