HomeAfter Sale Support Working with OsCommerce Changing the number of the featured products

Changing the number of the featured products


Q: How do I change the number of featured products on the front page?

A: The number of columns shown in the Featured Products section of the front page of the shop can be changed by editing the "includes/modules/new_products.php" file.
The number should be changed appropriately. The default is "2", which will show three columns because the counter starts at "0".


$col ++;

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


The following (modified) code will show 2 columns:


 $col ++;

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