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

22. Prepare a Quick 'n Easy Review System for Product Listing


It's likely that you're already bothered by the review stars only showing on the Product Detail page rather than offering an option for easy comparison in the Product Listing page.

With this recipe you will find a way to change this default behaviour in seconds, and your Product Listing page will show the review rating stars and links to add a new review.

Presentation

Your Product Listing page will look similar to the following screenshot after reviews have been added to it, with products not yet rated only showing the Write Review link:

Ready to spice it up? Use the code below!

Ingredients

Note

Modified:

catalog/includes/modules/product_listing.php

catalog/includes/languages/english.php

Cooking

  1. 1. Open catalog/includes/modules/product_listing.php and find the following code snippet in line 95. This is the section of your product listing where the product's name is defined.

case 'PRODUCT_LIST_NAME':
$lc_align = '';
if (isset...