By drupaceous on
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
hard coded
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 thetheme_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
I don't mind changing it in
I don't mind changing it in the module, just need to know where. Thank you very much for your help.
it is here
open product module in ecommerce/product/
Go to lines 36-39:
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.