Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is there a way to limit the number of products per row


Guest

Recommended Posts

Posted

I know you can change the number of products per page using the admin maximum values, but is there a way to limit how many products are displayed per row? currently my site lists them in rows of 4, i was wondering if i could change it so it would display 3 products per row. If anyone knows how i could accomplish this it would be much appreciated. Thank you for your time,

Helder

Posted

Hi,

 

In admin under configuration, my store:

categories to list per row

Posted

categories to list per row is currently set at 3, and it works, it only displays 3 categories, but products it lists in rows of 4

Posted

Do you have a url to look at or can you be more specific at what you are wanting to do?

 

The max values search option is for how many products you want to display on a page.

Posted

Did you change the admin, configuration, maximum seach, categories to show per row?

Posted

yes, it is currently set to 3, and it only shows 3 when it's categories, but when it's products it shows 4 per row

Posted

Ok I see what you are saying.

 

Is this 2.2ms1 or a recent snapshot?

 

Have you changed anything?

Posted

Hi,

 

Sorry I couldn't get on earlier to the forum.

 

What does this file say in your store?

 

/catalog/includes/modules/new_products.php

 

At about line 36 change the number "2" here to however many columns you want.

 

$col ++;

if ($col > 2) {

$col = 0;

$row ++;

}

}

 

1 = 1 column = 2 products per row

2 = 2 columns = 3 products per row

Archived

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

×
×
  • Create New...