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

24. Control Manufacturer Image Size


This recipe should be very interesting for you if you have nice subcategory images of one size and manufacturer logos of a different size. Your index.php file that uses the middle block of the file for showing subcategory or manufacturer product listings only uses one set of sizing, which is HEADING_IMAGE_WIDTH and HEADING_IMAGE_HEIGHT. You will be able to define manufacturer image size independent of category image size.

Presentation

The default size of 57 for HEADING_IMAGE_WIDTH and 40 for HEADING_IMAGE_HEIGHT looks fine for the subcategory images, as you can see in the following screenshot:

However, it often makes the logos too small and turns them into hard-to-read blobs, as in this screenshot:

The solution is to offer different sizing for logos and subcategory images so that the logo will not be squished, but will show the way it should.

Choose the pan that best fits your loaf, and get baking!

Ingredients

Note

New:

database.sql (to be run in phpMyAdmin...