osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Category Selection Buttons

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-19-2004, 08:06 AM
Member
 
Join Date: Jan 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
auntie22
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-29-2004, 08:57 AM
Anonymous
Guest
 
Posts: n/a
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-30-2004, 11:14 AM
Member
 
Join Date: Jan 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
auntie22
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 07:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax