Questions tagged [pagination]

Denotes questions related to collections pagination.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Magento 2.1.10 Pagination Bug

I run Magento 2.1.10 and have noticed that for large categories, the last page is a duplicate of the preceding page. For example, I have a category with 220 items and I have the grid set to display 32 ...
0
votes
0answers
14 views

How to add pagination to front end list?

<?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $resource = $objectManager->get('Magento\Framework\App\ResourceConnection'); $connection = $resource->...
0
votes
4answers
562 views

After Upgrading to Magento 2.4.3 the pagination is not working anymore

After upgrading from Magento 2.4.2-p1 to 2.4.3 the pagination is not showing up anymore on category and search result pages. I tested disabling the Magento 2 Infinite Scroll extension from Weltpixel ...
0
votes
0answers
21 views

Magento Pagination Issue Magento 2.4.2

I had selected the 24 Items per page and it gives two paginations, after that when I click the 36 items per page when the pagination is 2 the page shows there is no error. How to fix this issue.
0
votes
0answers
42 views

Magento 2 - Pagination not refresh cache

I'm on the category page. When I click on the pagination number, for example the number 2 with the link "www.magento2.com/category?p=2", I see that when clicked the page is never completely ...
0
votes
1answer
35 views

Paginate order list by 15 items and sort by price ASC

I need to do sort by price and paginate by 15 items for order list history page, can anyone help?
0
votes
2answers
125 views

Collection getSize returns Zero

I am using Magento 2.4.1 with PHP 7.4 I am unable to view paging inside the category view page. By debugging the code I found that inside vendor/magento/module-catalog/view/frontend/templates/product/...
0
votes
0answers
28 views

Paging not showing on category view

I am unable to see paging on my category view products. By default 12 products show and when I add a query string ?p=2 then other page products show. Here is my setting inside admin panel I have ...
0
votes
0answers
130 views

Magento 2 infinite scroll on custom page instead of pagination

I am using an extension for deals page. The page has pagination and pagination is called with this code $block->getToolbarHtml() . How can I change this to infinite ajax scroll? Also I only want to ...
0
votes
0answers
34 views

pagination using jquery

I have a search bar on my page when I search for something it returns the result perfectly with correct pagination. As shown below but when I clicked on page 2, it returns the data correctly but ...
0
votes
0answers
20 views

Magento2: How to get clicked page number on pagination

My pagination is working fine. But in ajax I only want to get page number which is clicked. For example I have products on 10 pages. When I click on page 2 it alert only 2, when click page 3 it alert ...
0
votes
0answers
24 views

Magento 2 Pagination List Address on Checkout Page

Is there a way to make pagination for list address on the checkout page? I have some peoples who help my customer to make order on my website and the list addresses added every day, it makes slow the ...
0
votes
0answers
138 views

Magento 2.4.1 search, bulk action, paginition not working properly

I am having 3 problems on magento 2.4.1 Bulk action is in pending. I tried to run the command : php bin/magento cron:run , but it's not working. On catalog page pagination is not showing I am not ...
0
votes
0answers
26 views

How to add a ajax option to load address in Admin panel customer information address tab?

Hi guys we want to add a pagination/load more feature in backend customer edit address section. Please guide us on how we can do this.
3
votes
2answers
1k views

Magento 2 Pagination not working on search results - Porto Theme

Pagination works when I navigate to a page, but when I search, it doesn't. This is inconvenient when there are 100 results, but when there are 1000+, eventually it just times out and throws a 524 ...
0
votes
0answers
60 views

Magento 2.4.0 Toolbar showing wrong result after applying custom filter in *LayerPlugin

I've overridden the Layer.php file using the plugin, to show product based on Multi-source location. But now I have the wrong number of elements in the toolbar (I have 4 products displayed but still ...
2
votes
2answers
320 views

Magento2.3 : Pagination - jump to top of pagination at PLP page

I have a problem with Buttons in Pagination. If the user clicks the button, it reloads the page with loader and settles down at the current page scroll position. Is there any method to force the ...
1
vote
0answers
36 views

magento2 , setCurPage pagination problem

I have this code $collection = $this->orderCollectionFactory->create() ->addFieldToSelect(['increment_id', 'global_currency_code', 'status', 'updated_at', 'total_due', '...
2
votes
1answer
265 views

How to create pagination in Magento 2 using Module?

I am creating a module with custom tab in Magneto 2 front end in which i have listed some product, now i want to create pagination for the same how would i do that. Controller File : <?php ...
4
votes
1answer
2k views

Magento 2: Custom added ajax pagination not working

I have added an ajax pagination in a custom module collection. I have a total of 50 items in the collection and the limit per page is 5; that should show total page of 10. Instead, it is showing only ...
1
vote
0answers
66 views

Magento 2: Ajax Custom Pagination using controller collection

I have implement custom ajax pagination and collection is returning from controller. I have trying pagination first time render pagination from block and set collection limit 5. After second time when ...
0
votes
2answers
1k views

Magento 2 - How to change number of products per page dynamically?

In Magento 2, I try to change number of products in category pages dynamically. For exemple categories 1 and 2 will have default number value (10), and category 3 and 4 will have one less product, ...
0
votes
1answer
46 views

Can i add product in category page product collection?

Can I add a product in category page product collection? I want to add product #123 in category page product collection but the same product already exists in the collection so it is possible? My ...
1
vote
0answers
82 views

What is the correct way to make the last page appear on pagination?

I need to make the pagination show some amount of pages saying 5 then show the dots and last page. Making it look like: 1 2 3 4 5 ... 20 pager.phtml already has those within the template, but they ...
0
votes
1answer
112 views

How is params p added in product listing url on click of pagination? [closed]

I Need to know how www.example.com?p=5 added in magento2 URL ?
1
vote
4answers
1k views

Magento2: Pagination on listing page using static block

I have added a static block in the category Static block content: Category : It shows all the products on a page. toolbar not showing: How can I add the toolbar:
1
vote
1answer
702 views

How to get current page number from url in Magento 2

I want to check the page number which appears in a URL in a phtml file. For example, if the URL is: http://localhost/magento/index.php/shop.html?p=4 How can I get the value 4 in the .phtml file? ...
0
votes
1answer
123 views

Pagination in Magento2 widget block

Hi is there any way to do pagination in widget block . For example have a category with id 355 . I want to display that category product in a page . So I am using widget(following code) {{widget ...
1
vote
0answers
127 views

How to add custom pagination in default toolbar magento 2?

I have custom pagination for my custom product collection. I am using Magento's default toolbar on my custom product list page. I want to add my custom pagination in Magento's default product toolbar. ...
2
votes
2answers
433 views

Pagination next/prev Jump, not working

In template file Magento_Theme/templates/html/pager.phtml the following code is never displayed: <?php if ($block->canShowPreviousJump()): ?> <li class="item"> <a class="...
2
votes
1answer
112 views

Magento 2 Paginate custom collection using ViewModel

Magento 2 encourages the usage of view models instead of filling the blocks with business logic. A view model is an abstraction of the view exposing public properties and commands. It allows ...
1
vote
0answers
21 views

How can i modify admin category product pagination in magento 2?

I want give custom pagination for category product list like more than 200 or 999. So, admin user can see more than 200 products at a time.
0
votes
1answer
80 views

Magento 2: Overide the Block file

How can in override the Block file.I need to override the below file. vendor/magento/module-theme/Block/Html/Pager.php protected $_availableLimit = [10 => 10, 20 => 20, 50 => 50]; ...
1
vote
0answers
451 views

Magento2: How to set pagination for wishlist?

As my default wishlist collection which is coming from block is not working due to the applied theme in my magento2 site. So, I applied the collection on my list.phtml file. And the problem is I need ...
2
votes
1answer
433 views

Magento 2 Pagination, from page 2 no results found

I have an issue on my production site running magento 2.3.3, results of pagination from the page 2 and above don't show any results to be more clear: https://mywebsite/products?p=1 -> function ...
0
votes
0answers
35 views

Magento 2 Admin : How to increase number of products shown under related products in admin section?

I want to sort the product by grag and drop , but both product are in different page , So want to remove pagination or show 100 products instead of 20 , Any Suggestion would be appreciated !
2
votes
1answer
216 views

Magento 2: Category Pages from Page 2 shows without products always

I'm trying to migrate a Magento 1.9.3.6 to Magento 2.3 and I found a strange problem. I've got some categories with thousands of products, I can see 64 products in my first page or 16, but if I go to ...
2
votes
2answers
41 views

Product collection retrieval N at a time (paginated)

I want to retrieve all the products. But would like to limit it to say 100 at a time to avoid too much memory usage. I have the collection factory injected in the constructor as \Magento\Catalog\...
1
vote
0answers
266 views

Pagination issue with Layered navigation on custom page in Magento 2

I had followed the steps from the link https://webkul.com/blog/how-to-create-layered-navigation-on-custom-page-in-magento-2 to create custom page with layered navigation. Layered Navigation is ...
0
votes
2answers
97 views

Add pagination in custom data collection magento 1.x

I want to add pagination in custom data collection Magento 1.x. I found it and tried but it not working. My table My collection public function getProductReturn(){ $collection = Mage::...
0
votes
0answers
33 views

Magento 2.2.7 Pagination Block not being written to page on search results

Pagination works fine on other pages but when I do a search and the results are posted, in this case more than 20, there are no paging controls displayed at the bottom and the block hasn't been output ...
0
votes
1answer
208 views

How to set pager on ajax call?

How to set pager on ajax call on a custom table.
2
votes
1answer
405 views

Magento2 - Pagination getPagerHtml() returns empty

I am trying to get pagination on my collection in block when i call from PHTML file it returns nothing, not showing pagination but $pageSize is working fine. This function getPagerHtml() in phtml is ...
2
votes
0answers
23 views

How to create a pagination on product page for the reviews

I am trying to create pagination on product page just to keep the review down. I have over 50 reviews for product is there anyway I could limit it to 10. Is there anyway I could follow some codes or ...
1
vote
0answers
31 views

layered navigation filter in magento 2

Recently working on my module i need to filter product collection on the basis of certain attributes and show then on a custom page of my module i have doe this shit.. but problem is that the ...
11
votes
1answer
1k views

Magento 2 - All products page with layered navigation and pagination

I want to create all product page with the filters, toolbar, pagination. I can do it by creating a new category with the name All Products and assign all products in it. But I guess this is not a ...
0
votes
0answers
96 views

Magento2: How to get product collection with pagination wise using ajax?

I want to get the product collection using ajax with pagination. I have implement the product collection using ajax but pagination is not working.
3
votes
0answers
113 views

Pagination Button in the "my order pages" are not working Magento 2

Pagination button 1,2 next are not working not taking to next page they are appearing like disabled in Magento 2.2.7
0
votes
1answer
482 views

Magento 2.2 Ajax not working on second time in category page

My site was working fine, suddenly the ajax on category pages is not working on second time. On first time it works fine, whether it is pagination or layered navigation but on second time it doesn't ...
0
votes
1answer
1k views

How use Pagination in Custom Product Page

I display custom products in page. use controller ,block and .phtml files define block and template in xml file. Products are showing correctly i use template module/catalog/view/frontend/template\...