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

34. Set Column Count for New Products


This recipe allows you to modify the default three-column layout within a few seconds. You will now be able to specify how many columns of new products you would like to show.

Presentation

In the following screenshot, the column count was set to 4:

Making a bunch of hors d'oeuvres? It's a cinch!

Ingredients

Note

New:

database.sql (to be run in phpMyAdmin)

Modified:

catalog/includes/modules/new_products.php

Cooking

  1. 1. Run the following SQL statement in your database, creating a new key for the column count used in the New Products box:

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('New Products To List Per Row', 'MAX_DISPLAY_NEW_PRODUCTS_PER_ROW', '3', 'How many new products to list per row', '3', '14', now());
  1. 2. Navigate to Administration | Configuration | Maximum Values and set the new key New Products To List Per Row to the...