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

5. Simplify Category Box Navigation by Defining Specific Colors for Each Level


In the default setup, all levels of categories have the same font color in the category box. If you'd like to color each level differently, this recipe will allow you to specify a stylesheet class for each category level.

Note

Chef's suggestion:

Experiment using all the available class formatting options, not only colors. It may be the perfect choice for your store to show one of the levels in uppercase completely (with the first letter being bigger) using the parameter font-variant: small-caps;

Presentation

Your box could look like the one in this recipe. A second-level subcategory Subcat level 2 was added for better demonstration:

In this example, Hardware stays black, first-level subcategory CDROM Drives is red, and the added second-level subcategory is brown. The code presented here supports four levels of subcategories.

Note

Chef's suggestion:

Keep in mind though that flat navigation structures are better for...