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

14. Define Box-Image Size Independent of Product Thumbs


You will love this recipe if you have detailed product images that are shown fairly big in your product pages, but you have a limited box width in the columns. This recipe will allow you to keep larger product images while the images in the columns are calculated to their own size parameters.

Note

Chef's suggestion:

Using the defined constant SMALL_IMAGE_WIDTH would automatically widen your column, which will mess up your site design.

Presentation

We are creating a new configuration table key to be used in product-displaying boxes like Reviews, Specials, What's New?, and Manufacturer Info instead of the default-image thumb key, SMALL_IMAGE_WIDTH.

Your screen will look like the one in this shot:

Make up a size and set new options. Ready to make it large?

Ingredients

Note

New:

database.sql (to be run in phpMyAdmin)

Modified:

catalog/includes/boxes/whats_new.php catalog/includes/boxes/specials.php catalog/includes/boxes/reviews.php catalog...