1

how can i set the custom limit for pager. this is adding the limit in page and page is showing but the dropdown on limit is not showing on page how to dropdown of limit on Custom Collection.

->setAvailableLimit(array(1=>1,2=>2,3=>3))

i tried this but not working

public function getAvailableLimit()
    {
        return array(1=>1,2=>2,3=>3);
    }

1 Answer 1

0

after spending many of hours i checked this is a css by default

.limiter {
    display: none;
}

so i have to overwrite in my module

.news-index-index .limiter {
    display: block !important;
}
4
  • I am trying to add pagination on my custom page , but the count is not working as expected , $pager->setLimit(36), how can I set it as dynamic which we are filling in admin?? Jan 23, 2017 at 8:38
  • @supriyamishra can you add question with your code so i can look at that Jan 23, 2017 at 8:55
  • Sure , I am adding Jan 23, 2017 at 9:15
  • @Qaiser Satti kindly look into this problem magento.stackexchange.com/questions/155959/… Jan 23, 2017 at 9:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.