This is a discussion on Category Selection Buttons within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hello Everyone, I need a little help please. I have searched the forum to no avail, please any assistance would ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hello Everyone, I need a little help please. I have searched the forum to no avail, please any assistance would be apreciated. I would like to know how one can create category drop down buttons to be located between the home>catalog nav bar and the header image banner? or How to make the current catalog list a side dropdown box (click lingerie a box pops open with subcategories) I have found how to make your categories list a dropdown but all the subcategories look crowded and the regular list is too long, also the fonts are small (if you enlarge them to much, well we all pretty much know what happens) so for those viewers that have vision issues like myself I would like to make navigation a little easier with dropdown boxes that pop out at you, oops I got hit, LOL (humor to stop hair pulling). Any clues, or instructions would be greatly apreciated. Thank you, Auntie22 |
|
#2
| |||
| |||
| Hello, I too would like to know this. Or if someone can explain how to keep the subcategories from showing up on the dropdown list. I would like the main categories to show up only on the dropdown list and the subcategories to show up only on the selected info page. Any help would be great. Thanks. ![]() |
|
#3
| |||
| |||
| Quote:
Rename existing catalog/includes/boxes/categories.php file and copy this code to notepad and save as categories.php and upload. <!-- drop_categories //--> <tr> <td> <?php /// Display box heading $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, true, false); /// Get categories list $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 = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); /// Display a dropdown $category_name_array = array(); $category_name_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT); while ($categories = tep_db_fetch_array($categories_query)) { $categories_name = ((strlen($categories['categories_name']) > 20) ? substr($categories['categories_name'], 0, 20) . '..' : $categories['categories_name']); $category_name_array[] = array('id' => $categories['categories_id'], 'text' => $categories_name); } $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('drop_down_nav', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'), 'text' => tep_draw_pull_down_menu('cPath', $category_name_array, (isset($HTTP_GET_VARS['cPath']) ? $HTTP_GET_VARS['cPath'] : ''), 'onChange="this.form.submit();" size="' . MAX_CATEGORIES_LIST . '" style="width: 100%"') . tep_hide_session_id()); new infoBox($info_box_contents); ?> </td> </tr> <!-- categories_eof //--> Hope this helps. And if anyone could help me with my first question I would appreciate it. Thanks everyone |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Template selection | jsp_1983 | osCMax v2 Customization/Mods | 9 | 10-20-2005 08:43 AM |
| Price Updating Dynamically with Drop-Down Selection | lisasher | osCMax v1.7 Discussion | 0 | 06-07-2005 01:41 PM |
| Products Attributes - drop-down menu for product selection | SuperPickle | osCommerce 2.2 Modification Help | 0 | 10-11-2004 09:24 PM |
| country code selection? | rabbit116 | osCMax v1.7 Discussion | 1 | 03-30-2004 12:57 PM |
| dynamic character selection | dan000 | osCommerce 2.2 Modification Help | 0 | 11-18-2003 02:32 PM |