Book Image

Deep Inside osCommerce: The Cookbook

By : Monika Mathe
Book Image

Deep Inside osCommerce: The Cookbook

By: Monika Mathe

Overview of this book

osCommerce has been around since March 2000. At present there are over 10,000 live, registered osCommerce sites, and about 100,000 registered community members. Apart from providing ready-made solutions to problems, as well as a huge repository of information, the osCommerce community is a living entity with which we can all interact. With the rising success and popularity of this remarkable piece of software, things can only get better.
Table of Contents (17 chapters)
Deep Inside osCommerce: The Cookbook
Credits
Foreword
About the Author
About the Reviewers
Introduction

3. Show Active Subcategories only in Your Category Box


In a default osCommerce setup, the category box holds your categories, and subcategories are displayed in the same box directly below the active category name. This recipe will use the category box for subcategories only while the main categories are displayed in a different menu.

By adding a navigation bar with your top categories at the top of the pages, the category box only needs to be visible if there are subcategories to a category. At all other times, the category box will be hidden to free up the space.

Presentation

In this setup a horizontal navigation bar was added at the very top of the page for the top categories of the shop, which are Hardware, Software, and DVD Movies in a default osCommerce installation. By clicking on the category Software, a subcategory box shows up, displaying all the subcategories that belong to Software. The box is

still visible when you click on a subcategory from the box to show the subcategory product...