Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 3 of 3

Thread: Category Selection Buttons

  1. #1
    auntie22
    Guest


    Default Category Selection Buttons

    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. #2
    Anonymous
    Guest


    Default

    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. #3
    auntie22
    Guest


    Default

    Quote Originally Posted by Anonymous
    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.
    To create dropdown list w/no subcategories.
    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

Similar Threads

  1. Template selection
    By jsp_1983 in forum osCmax v2 Customization/Mods
    Replies: 9
    Last Post: 10-20-2005, 08:43 AM
  2. Price Updating Dynamically with Drop-Down Selection
    By lisasher in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 06-07-2005, 01:41 PM
  3. Products Attributes - drop-down menu for product selection
    By SuperPickle in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-11-2004, 09:24 PM
  4. country code selection?
    By rabbit116 in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 03-30-2004, 12:57 PM
  5. dynamic character selection
    By dan000 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-18-2003, 02:32 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •