osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Hide Parent Category and Display only Child or Sub Category in a DHTML menu

This is a discussion on Hide Parent Category and Display only Child or Sub Category in a DHTML menu within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; If you want to display only the child (sub categories) in a dhtml menu , use this code. this will ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 06-19-2008, 08:30 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,979
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Hide Parent Category and Display only Child or Sub Category in a DHTML menu

If you want to display only the child (sub categories) in a dhtml menu , use this code. this will hide the parent category

Use at your own risk and always back up

Just change

$categories_query_catmenu = 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 = '" . $currentParID . "' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id

."' order by sort_order, cd.categories_name");

to



$categories_query_catmenu = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " .

TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order,

cd.categories_name");

Thats all

Easy and Simple

Same instruction is in a text file to download..no other additions

- Sarath

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
CSS Category just like dhtml but seo friendly bkpie osCMax v2 Customization/Mods 13 11-05-2008 01:06 PM
Temporary hide a category yulises osCMax v2 Customization/Mods 2 05-15-2008 04:34 AM
Specials & Products_new sort category & sub-category dropdown menu michael_s New osCommerce Contributions 0 03-02-2008 10:23 PM
Dhtml Menu does not display. Walter osCMax v2 Features Discussion 8 02-21-2007 09:09 AM
Dhtml category menu not working correctly JohnW osCommerce 2.2 Modification Help 10 11-19-2004 09:04 AM


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


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