Advertisement:

Author Topic: Help Needed to make Categories in the sidebar of the search and browse page  (Read 3873 times)

jacobMAL

  • Newbie
  • *
  • Posts: 2
i want to display the categories in the search and browse page for better navigation like shown in the attached picture  .
Example if you click on any main category, the subcategory should be display in the left hand sidebar.

please help me to do this

rockitman187

  • Newbie
  • *
  • Posts: 37
i want to display the categories in the search and browse page for better navigation like shown in the attached picture  .
Example if you click on any main category, the subcategory should be display in the left hand sidebar.

please help me to do this

Add this into your theme file main.php  find this this <div id="sidebar"> and add the code below

<div class="navigation">
                        <div class="box location">
                            <ul>
                                <?php osc_goto_first_category() ; ?>
                                <?php while ( osc_has_categories() ) { ?>
                                <li>                 
                                    <h2><strong><a href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span></strong></h2>
                                </li>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>
                </div>

BRYAN

  • Jr. Member
  • **
  • Posts: 57
  • Beef Ruins Yet Another Nation
simple and it works  :P but any way to make the category open so u can see sub categories?

EDIT


i found it :) http://forums.osclass.org/development/sidebar-rollover-menu-remembering-parent-category/
« Last Edit: April 10, 2013, 02:25:22 pm by BRYAN »