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

19. Add a Separator Line in Product Listing


This recipe shows you an option to add dividers between your products. It makes your product listing much clearer, and shopping at your store a pleasant experience.

Presentation

Your Product Listing page will look like the following screenshot with a light, gray separator line added between the rows of products:

Are you ready to separate the white meat from the dark?

Ingredients

Note

Modified:

catalog/includes/modules/product_listing.php

Cooking

  1. 1. Open catalog/includes/modules/product_listing.php and find this code in line 137:

$list_box_contents[$cur_row][] = array('align' => $lc_align,
'params' => 'class="productListing-data"',
'text' => $lc_text);
}
  • With this array, the content of each row is generated.

    Immediately below it add the following code that will check how many rows you are actually showing and will set the colspan accordingly, creating a line that will be displayed after each product, and separating it from the last one...