I have modified the category product collection in my module. And overridden the class Mage_Catalog_Block_Product_List. I have created a new function and did some filtering with the product collection returned from _getProductCollection() function. My function is as below. $productActiveFrom , $productActiveTo , $merchantName are product attributes.
Products are filtering as I expected. But the pagination is not working properly. It loads all the products in one page. Even though it shows page numbers as 1,2,3, etc. when I click on any page number it shows all the products.
I have tried all the solutions mentioned in web. But none of them worked out. Please any help will be appreciated.
Click thumbnail to see full-size image