Categories

How to maintain product listing module

Simon Kilgour November 15, 2010
Rating: 5.0/5. From 1 vote.
Please wait...

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
This entry was posted in E-commerce Templates, OsCommerce, OsCommerce Tutorials and tagged osCommerce. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket