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

7. Move Your Infobox Header closer to Content


This recipe is very useful when you only have a few lines in each box looking lost or wasting too much space, or when you have a number of boxes and need to make your columns shorter. You would then like to move the infobox content closer to its header. As you are amending the class for the infobox header, all infobox headers will be changed by only changing a single file.

Presentation

The following screenshot shows you the results of your cooking:

You will love this light and easy snack; so let's get going!

Ingredients

Note

Modified:

catalog/includes/classes/boxes.php

Cooking

  1. 1. Open catalog/includes/classes/boxes.php and find the following in line 88:

$info_box_contents[] = array(array('text' =>
tep_draw_separator('pixel_trans.gif', '100%', '1')));
  • This is a spacer row added between infobox header and content, therefore comment it out so that it looks like this (still all on one line):

// $info_box_contents[] = array(array('text' =>
tep_draw_separator...