Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change list 3 row 3 col to 4 row 3 col??


Guest

Recommended Posts

How to change list 3 row 3 col to 4 row 3 col??

 

Do you mean add a row

 

Change The Number Of New Product Colums

 

Introduction

 

The number of columns shown in the New Products box can be changed by editing the includes/modules/new_products.php file.

 

Solution

 

Around line 36, the number if ($col > 2) should be changed appropriately.

 

The following code will show 2 columns:

 

<?php

$col ++;

if ($col > 1) {

$col = 0;

$row ++;

}

?>

 

Count starts at 0 not 1 therefore ($col > 1) means 2 colomns and ($col > 2) = 3

 

Read ths in the knowledge base

 

http://www.oscommerce.info/kb?search=add+row+to+products

 

Hope this is what you want!

 

Kind Regards,

Michelle.

Link to comment
Share on other sites

Thanks,edit includes/modules/new_products.php,it can change to 4 or more colomns,

but i want to change to 4 or mor line!

 

Do you mean add a row

 

Change The Number Of New Product Colums

 

Introduction

 

The number of columns shown in the New Products box can be changed by editing the includes/modules/new_products.php file.

 

Solution

 

Around line 36, the number if ($col > 2) should be changed appropriately.

 

The following code will show 2 columns:

 

<?php

? $col ++;

? if ($col > 1) {

? ? $col = 0;

? ? $row ++;

? }

?>

 

Count starts at 0 not 1 therefore ($col > 1) means 2 colomns and ($col > 2) = 3

 

Read ths in the knowledge base

 

http://www.oscommerce.info/kb?search=add+row+to+products

 

Hope this is what you want!

 

Kind Regards,

Michelle.

Link to comment
Share on other sites

In admin>>configuration>>maximum values there is a setting for the number of products for the module to display - adjust this :P

 

Matti

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...