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

23. Whip Up a Top-Category Driven Product Listing


This recipe is perfect if you need to display your product listing in a different way, determined by the top category. This would be an option if you'd like to display stock, or any other information, instead of the image for one of your top categories.You can also adjust the search-result count and previous/next navigation bar display. You could also use a completely new layout such as Product Listing in Columns for the additional product listing file.

Presentation

Here is a screenshot taken of a subcategory of DVD Movies with a new product-listing file for this top category:

The new product-listing style is used for DVD Movies and Software, while Hardware still looks like this:

If this tantalizes your taste buds, get smacking!

Ingredients

Note

New:

database.sql (to be run in phpMyAdmin)

catalog/includes/modules/product_listing_diff.php

(this is a clone of the catalog/includes/modules/product_listing.php file)

Modified:

catalog/includes...