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
- Open your osCommerce store installation directory.
- Go to includes/modules directory
- Open new_products.php file.
- 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
- Open osCommerce administration tool
- Go to Settings > New Products Module
- Set the desired value for New Products Module To List Per Row