Questions tagged [pagination]

Denotes questions related to collections pagination.

Filter by
Sorted by
Tagged with
0
votes
1answer
723 views

Magento pagination not working properly

I am trying to show custom collection with pagination that code is working when i moved that code to other theme then pagination not working properly according to records please find the attached ...
5
votes
1answer
2k views

Changing paging options in admin grid

I've build a Magento 2 admin grid using ui-components. But I don't want the default paging of 20, 30, 50, .... I want my own values. For example 1,2 and 3. I remember that in a beta version I could ...
1
vote
2answers
3k views

Magento 2 : Admin Grid Pagination Issue

In magento admin, custom grid pagination is not working. I have 3 records in database, When I enter 2 records/page then next page button remains disabled and it will not show remaining 1 record. This ...
0
votes
1answer
535 views

Pagination not working in custom admin module

I made a custom module in admin section for seller management. I updated the details using a CSV file. There are about 200 entries. Now, when I try to go to the next page, it redirects to the same ...
0
votes
1answer
711 views

How to add pagination in wishlist index page in Magento 2?

I currently have issue that i have to add pagination in wishlist page. Is there a way to that since it isn't using a direct collection. Thanks!
5
votes
1answer
679 views

Using repositories on frontend with paging

I've created a CRUD module in the proper way, with service contracts (SC). I'm using these SC in the backend with ui-components and everything. This works nicely, but I want to use the repository's ...
1
vote
2answers
2k views

How to get collection object from custom query result in pagination

I have created a custom table in my magento store and wants to show its data on frontend. For this I have created a block file in my custom module like : class Custom_Module_Block_Pagination ...
0
votes
1answer
950 views

Change Product List Count and List Size Programmatically Via Layout Update XML

I am trying to limit the products per page to six from the current twelve. Also trying to make the dropdown options 6, 12, 24 for different product displays. I currently have the file ../app/design/...
0
votes
1answer
926 views

Pagination Limit Need to make dynamic

I am adding pagination block to my custom shop by brand module, here is Block file <?php namespace PinkBlue\ShopByBrand\Block; use Magento\Catalog\Model\Product\Attribute\Source\Status; class ...
1
vote
2answers
2k views

How to add pagination to custom collection in admin tab content

I have added a custom tab in customer admin view. My tab class content is : class Namespace_Modulename_Block_Adminhtml_Customer_Edit_Tab extends Mage_Adminhtml_Block_Template implements ...
0
votes
1answer
264 views

Pagination problem in magento

In magento pagination, When I pass current page and per page, its showing accurate result but when I pass per page value and current page value if there is no record for current page its again ...
1
vote
1answer
325 views

How to show cache for product pagination collection page?

We have created custom category product collection having pagination, but when we add below code it's not working with pagination. When we click next page then it's always showing first page product. ...
0
votes
2answers
1k views

Load pagination on list.phtml

i'm trying to create my first magento template and i'm facing problems to load the pagination toolbar. My last try was using $object = new Mage_Catalog_Block_Product_List_Toolbar(); echo $object->...
2
votes
0answers
1k views

Magento 2.1 Pagination not showing

I'm using magento 2.1, and is not showing Prev, Next buttons on category page, I have 200 products, and should show 16 on page, it shows the 16 products but not next, prev buttons, so I can't navigate ...
5
votes
3answers
6k views

How to update category page with custom filters, and also layered navigation, Magento 2.1

I need to update category page collection by filtering restricted SKUs. As like $collection->getSelect()->where("`e`.`sku` IN('24-MB04', '24-MB03', '24-MB02')"); Above query gives collection ...
0
votes
3answers
511 views

Magento 2: Admin Move Filters & Paging to Top

I have below image in Admin. Don't know how it happened. But it moved to Bottom. I have so many pages where it moved to Bottom. How to move it to top position again.
0
votes
1answer
50 views

Pagination in Version 1.3.2.3

Good afternoon, have me paged Order Magento One section, in which sample a list of products. The problem is that this shows the products as seen in the photo. I wish to stay with pagination, But ...
6
votes
2answers
2k views

Pagination count and collection display issue for custom collection

I have displayed custom collection on my custom page. The issue i am facing is that pagination is supposed to limit the collection per page but here in frontend whole collection is displayed on one ...
2
votes
1answer
220 views

Paging controls not showing in Mage2 listing page (ui_component)

Here's the relevant portion of the XML to create a listing page. For some reason the paging component won't show. I've been looking over this for hours, any idea where I need to look next to enable ...
2
votes
2answers
453 views

Pagination (block) missing

Most of the times I find a solution here, but in this case it's a little more complicated. I followed the instructions given in several posts, but none of them worked. The pagination block should be ...
17
votes
1answer
24k views

how to add pagination on custom collection in Magento 2

I am working on custom module. How can i use default magento pagination with my custom collection and also set custom limits on that?
1
vote
1answer
2k views

set custom limit for pagination magento2

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. ->...
0
votes
1answer
92 views

How do I return a 404 page for pages beyond category pagination pages?

That title sounds confusing, sorry. But basically I have a category grid page, with pagination. So I have pages like: /men/tops/shirts.html /men/tops/shirts.html?p=2 /men/tops/shirts.html?p=3 This ...
2
votes
1answer
192 views

Debug Magento speed - slow on 'All' products select

I have around 80 products in my store - on selecting 'ALL' from the tool bar on the product list.phtml page the site is very slow to respond (and sometimes doesn't). Where do I start debugging this ...
3
votes
1answer
1k views

Magento SEO implement rel=“prev” and rel=“next” meta tags

I'm attempting to improve SEO for my product catalog by implementing the <link rel='next' href='..'> and <link rel='prev' href='..'> head meta tags for catalog pages with several pages of ...
0
votes
0answers
125 views

Magento display empty parts in Category page when click on toolbar

I am currently working on Magento and installed one custom theme Porto. When I clicked on any option of toolbar at that time all products load using ajax but display some empty part. Here blank ...
0
votes
1answer
486 views

Pagination in a sales category

I am in Magento 1.9 and I need a page listing all products with special prices. I achieved that by simply adding a new category with the Custom layout field containing : <reference name="content"&...
4
votes
2answers
4k views

Pagination Missing

I am working with Magento2. Category pages seem to be not calling the Pagination at all. I can see in toolbar.phtml <?php echo $block->getPagerHtml() ?> it is there correctly but doesn't ...
2
votes
0answers
65 views

How can I add a different static block to each paginated page in my catalog?

Right now I have a static block with content on each of my category catalog pages. When users page through the paginated catalog results, the block is static and does not change content. I would ...
0
votes
1answer
1k views

Change pager template

I am trying to include a different pager for the bottom toolbar. For this I have changed the template used by the bottom toolbar: <?php echo $this->getToolbarBlock()->setTemplate('catalog/...
0
votes
0answers
68 views

I have writing more than 300 rating and review so here display all review but i want to display as pagination?

I have writing more than 300 rating and review so here display all review but i want to display as pagination if any better solution please suggest me. because when product view more than 1500 goes ...
0
votes
1answer
135 views

Custom pagination stopped working

I am using Magento v1.8.1 My developer (who has now left the team) had implemented custom pagination on my site about a year ago. It was working just fine till recently. Now, clicking on the right ...
1
vote
1answer
899 views

Magento Category Pagination URLs

I want to create pagination on my Category pages. I have added this too the footer and configured it via the config and it shows up as expected. Looks great at first sight, however when I select a ...
0
votes
1answer
534 views

Magento pagination not working with custom objects

I am trying to applying magento pagination on custom object but not able to do it properly. Problem is my object is not an db object, I am calling an API which returns data in json format. I am ...
2
votes
1answer
1k views

Pagination missing on category pages?

The pagination is missing on my toolbar on category pages, it works for the search results. I debugged the code and figured what the problem is. In the Toolbar block there is a function getPagerHtml. ...
1
vote
0answers
299 views

magento pagination with item per page not working

I am trying to set the pagination with number of items per page. However, it is not working as expected. Below is the code that I am using. However, every time it gave same output even when the value ...
1
vote
1answer
468 views

increase default limit of sales_order pagination

How can I achieve in the sales_order adminhtml to display the pagination additionally below the grid? Also, I would like to have a default limit of 50 rows instead of 20 (in the sales_order ...
2
votes
3answers
506 views

Add Pagination by Text box

I would like to use pagination by text box where client can type the number of product page and click go/submit button.
1
vote
1answer
1k views

Get current number of pages with filter apllied

I need to get the current number of pages (if we are in a category) in head.phtml. The line below doesn't help me because if a filter is applied, the total of pages must to change. $prodCol = $...
0
votes
2answers
3k views

Limiter per Page is not Working

On Product List page I added a filter Sort By: Newest Products Popularity Name From A-Z Name From Z-A Price - Low to High Price - High to Low everything is functioning properly but comes the ...
1
vote
1answer
669 views

Magento pagination query different to list.phtml file collection

I have tried to filter the magento product result according to stock and all color and etc. so i have wrote some query, but instead of query my pagination page numbers are different, when i debug this ...
0
votes
1answer
575 views

Magento(1.9) pagination issue

I have wrote the pagination functionality,in the below code i set the pagination 4 for each page,but unfortunately i got all the records in first page itself,and even the second page also the entire ...
0
votes
2answers
1k views

`getLastPageNumber()` returning wrong number of pages

For some reason, using $collection->getLastPageNumber() is returning the wrong number of pages. For example: $collection->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::...
0
votes
1answer
77 views

Pagination broken in a third party module

We bought this job application suite module from a dev that I can't get in touch with and our store managers can't view applications past the first page (set of 20). If they try to go to the second ...
1
vote
1answer
1k views

setPage magento2?

i want use pagination for my module. I have code return $this->_faqFactory->create()->getCollection()->setCurPage($this->getCurrentPage())->setPageSize(10); Edited in view page1 ...
1
vote
1answer
760 views

Catalog: Custom Product Collection, mode switch (grid/list) bug?

Edit: I think I found a solution. (See answer by me below) I have a product collection which I pass to the Magento catalog/product_list block. I've set curPage and pageSize of the collection and ...
1
vote
2answers
4k views

Magento custom pagination limit change

I have create the custom pagination with Magento(1.9), see the below code for the pagination. code in block public function getPagerHtml() { return $this->getChildHtml('pager'); } ...
3
votes
2answers
382 views

Is this possible? Back to last viewed category page after viewing details?

Example: A category has 72 items in it In catalog settings we have set the number of items to show per page to 24 So in front end there will be 3 pages with 24 items each. Now when a customer views ...
0
votes
1answer
1k views

magento front end pagination not working for custom table join query collection

i working with the custom collection pagination, its working much good for single table collection, but for the join query collection, the pagination is not working, below i give as much a information ...
2
votes
2answers
256 views

Saving a product collection and showing parts of it per page, without reloading

In catalog/product/list.phtml, how can I always use the products from a single, saved product collection? Is there a way to load a product collection, save it, then show some of these products (e.g. ...