Hello,

This is probably a newbie question.

In "administer > settings > posts", there's a possibility to define the maximum number of posts that should appear on the front page. Is it possible to do the same for the products page, i.e. limit the number of products listed per page, and (automatically) adding page numbers for the rest of the products?

Thanks,

Comments

coreyp_1’s picture

For now, this setting is hard coded into the product module.

If you want to change it, edit lines 38 & 39 of product.module, in the theme_product_view_collection() function.

It defaults to 15 product (3 * 5 = 15) per page, and has the pagination built in.

Yes, we know that this should not be hard-coded, but the e-commerce modules are still young, and are still changing.

- Corey

drupaceous’s picture

I don't mind changing it in the module, just need to know where. Thank you very much for your help.

chueewowee’s picture

open product module in ecommerce/product/

Go to lines 36-39:

function theme_product_view_collection() {

  $columns  = 3;
  $rows     = 5; 

Adjust the hard coded numbers to create a table to your own liking.

You could instead drop a template.php file in your theme of choice to overide this function.