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

67. Highlight Orders According to their Order Status


This recipe will be much appreciated by busy stores that require quick references to the status of a recent order without doing a search from the drop-down list. Choosing colors to highlight the status of each order will group your orders visually, so they can easily be distinguished.

Note

Chef's suggestion:

While you can use any color to highlight status, here traffic light colors were selected with Pending being red, Processing being yellow, and Delivered being green.

Presentation

The following screenshot shows Administration | Customers | Orders with the order status colored according to its value:

Blue, Medium, or Well Done?

Ingredients

Note

Modified:

catalog/admin/includes/stylesheet.css

catalog/admin/orders.php

Cooking

  1. 1. Open catalog/admin/includes/stylesheet.css and add the following classes, one for each order status you want to highlight, specifying a different background color for each:

/* status */
.delivered {
font-family:...