Skip to main content

Questions tagged [pagination]

Denotes questions related to collections pagination.

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

How do I return a 404 page for pagination pages where there are no products?

My website product landing pages have the current pagination: https://www.example.com/bread/sourdough https://www.example.com/bread/sourdough?p=2 But if I put in a page number that isn't in the series,...
William's user avatar
0 votes
0 answers
28 views

Magento 2 : Pager not work in my custom collection

I have a custom collection for ordered products for a customer. $connection = $this->resourceConnection->getConnection(\Magento\Framework\App\ResourceConnection::DEFAULT_CONNECTION); $...
Mujahidh's user avatar
  • 2,823
0 votes
1 answer
86 views

Category links loading two times

When we click on any category or subcategory link , it open two urls : first, it will load below url https://www.website.com/earrings/earlobes Next, it will load below url : https://www.website.com/...
Baby in Magento's user avatar
0 votes
0 answers
150 views

After upgrade to magento 2.4.6-p3, the pagination is not working

Upgraded my magento to 2.4.6 from 2.4.0 and the pagination is showing but it is not working. when i am clicking on page 2, it is not going on next page and the url is also not updating. Here is my ...
Tisha Jhanwar's user avatar
0 votes
0 answers
19 views

Product list pagination not working correctly for category with over 50 products

I have a multistore with 4 stores. Three of the 4 are working correctly as they have under 50 products in the specific category. The one with more than 50, shows next page after the final product, and ...
Marie's user avatar
  • 1
1 vote
1 answer
90 views

Magento 2 Pagination Urls changing from ?p= to &p=

For some strange reason, despite not running any recent updates, our pagination links have broken on all categories. So they are occuring as &p=2 rather than ?p=2. The link still works if you ...
user2099163's user avatar
0 votes
1 answer
254 views

Magento 2 Add custom pagination in Wishlist My Account Section

I have using Magento 2.4. I am trying to apply custom pagination in Wishlist my account section. Currently magento have default pagination based on page. Initially I need to show first 9 product, then ...
Kirti Nariya's user avatar
  • 3,071
1 vote
1 answer
210 views

Magento2 pagination disable - lazy load

I have a Porto theme in default Magento2 installation. Is there an easy way to disable pagination on category page (where products are displayed). I would like to completely remove pagination and use ...
XraySensei's user avatar
1 vote
0 answers
26 views

| PWA studio x magento 2 | Request for the "total pages" in category page return everytime "1"

When I display all my products in my category page, I have 20 products. But in the category I have 108 products, so there is supposed to be several page for this category, but I don't have the ...
Yoyo's user avatar
  • 11
0 votes
1 answer
118 views

Magento 2 how to get product Ids in the Product listing page without pagination

I want to get the listed product's IDs in the product listing page without pagination. But the products will be listed with pagination. If it is filtered by layered navigation/search then I want that ...
Jancy Abraham's user avatar
2 votes
0 answers
13 views

product appears more than once in magento 1.9 pagination

I have a problem in magento 1.9 in some categories some products that appear on the first page of pagination again Personal appear on the pages, replacing like this or next to some products. Has ...
lucas's user avatar
  • 309
0 votes
2 answers
1k views

Convert Array to Magento2 Collection

I am converting an Array to Magento2 Collection $items = $this->getItems(); $collection = $this->collectionFactory->create(); foreach ($items as $item) { $...
Syed Hassan Zamir's user avatar
0 votes
1 answer
323 views

Magento2 Pagination

I am using magento2 pagination on custom collection it is working fine but, Pagination Frame, Pagination Frame Skip, not working on custom collection Setting Pagination Settings from Content > ...
Syed Hassan Zamir's user avatar
0 votes
2 answers
1k views

how to add pagination using ajax on custom collection in Magento 2

am working on custom module. How can i use default magento pagination use ajax with my custom collection and also set custom limits on that?
dang minh's user avatar
0 votes
1 answer
175 views

Add pagination in custom module by ajax call

I have developed Custom module in which data retrieving from db perfectly, but i want to show first ten data(10 rows) at first page and at second page display next ten data and so on by Ajax call.
Muhammad Zahoor's user avatar
0 votes
1 answer
2k views

How to get product collection total with pagination in magento 2

I have implemented pagination with limit & offset but when I am fetching the collection total after applying multiple filters then it's giving the wrong total count. $layer = $...
Jitendra Patel's user avatar
1 vote
0 answers
167 views

Magento 2.4: UI component paging with non-collection DataProvider

I have listed UI component with DataProvider that is not a collection. I want to make pagination for it but when I add simply toolbar and pagination nodes in XML it does not work. I can see that I ...
LeTeeL's user avatar
  • 42
10 votes
6 answers
10k 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 ...
cookie monster 24534's user avatar
0 votes
1 answer
485 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?
Toranto mina's user avatar
1 vote
2 answers
957 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/...
ishaq's user avatar
  • 195
0 votes
0 answers
142 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 ...
Muhammad Ali's user avatar
3 votes
2 answers
4k 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 ...
web master's user avatar
2 votes
3 answers
1k 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 forcefully load ...
Script Host's user avatar
1 vote
0 answers
168 views

magento2 , setCurPage pagination problem

I have this code $collection = $this->orderCollectionFactory->create() ->addFieldToSelect(['increment_id', 'global_currency_code', 'status', 'updated_at', 'total_due', '...
Denys Maksiura's user avatar
2 votes
1 answer
1k 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 ...
Prits's user avatar
  • 623
4 votes
2 answers
3k views

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 ...
Kirti Nariya's user avatar
  • 3,071
1 vote
0 answers
173 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 ...
Kirti Nariya's user avatar
  • 3,071
1 vote
2 answers
3k 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, ...
Fbr's user avatar
  • 167
0 votes
1 answer
112 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 ...
Sagar Dobariya's user avatar
1 vote
1 answer
646 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 ...
thenightingale's user avatar
0 votes
1 answer
395 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 ?
Unknown's user avatar
  • 581
1 vote
4 answers
2k 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:
Hafiz Arslan's user avatar
1 vote
1 answer
2k 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? ...
Nafsss's user avatar
  • 758
0 votes
1 answer
456 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 ...
Abilash Erikson's user avatar
1 vote
0 answers
621 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. ...
Hima Mohan's user avatar
2 votes
2 answers
814 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="...
zekia's user avatar
  • 660
2 votes
1 answer
311 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 ...
Radu's user avatar
  • 460
1 vote
0 answers
65 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.
Jitendra Patel's user avatar
0 votes
1 answer
227 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]; ...
AKM's user avatar
  • 87
1 vote
0 answers
1k 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 ...
Amy's user avatar
  • 945
2 votes
1 answer
1k 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 ...
grll's user avatar
  • 143
0 votes
0 answers
66 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 !
mis's user avatar
  • 1
2 votes
1 answer
387 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 ...
Jon Zangitu's user avatar
2 votes
2 answers
461 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\...
melchi's user avatar
  • 175
1 vote
0 answers
476 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 ...
Parth's user avatar
  • 135
0 votes
2 answers
527 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::...
Brian NN's user avatar
  • 941
0 votes
0 answers
90 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 ...
Mur's user avatar
  • 1
0 votes
1 answer
435 views

How to set pager on ajax call?

How to set pager on ajax call on a custom table.
Asad Ullah's user avatar
  • 1,471
3 votes
1 answer
796 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 ...
Asad Ullah's user avatar
  • 1,471
2 votes
0 answers
61 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 ...
Jack Brooks's user avatar

1
2 3 4 5