[contact-form-7 id="24078" title="Feedback EN"]

How to maintain product listing module

This tutorial shows how to maintain product listing module in osCommerce store.

For an example we’ll use New Products module

osCommerce 2.2. Change number of columns in new products listing

  1. Open your osCommerce store installation directory.
  2. Go to includes/modules directory
  3. Open new_products.php file.
  4. Locate the following:
$col ++; 
if ($col > 2) { 
   $col = 0; 
   $row ++; 
} 
?> 

Columns counter starts from 0 so in order to display 4 columns (for example) you need to change the code as follows:

$col ++; 
if ($col > 3) { 
   $col = 0; 
   $row ++; 
} 
?> 

osCommerce 2.3. Change number of columns in new products listing

  1. Open osCommerce administration tool
  2. Go to Settings > New Products Module
  3. Set the desired value for New Products Module To List Per Row

How to maintain product listing module