Questions tagged [pagination]

Denotes questions related to collections pagination.

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

Magento 2.3.X pagination not working properly on page with more than 300 products

I have a strange problem. The pagination "Show XYZ per page" does not work on a particular page. I can click the dropdown and say show 36 per page and ...?product_list_limit=36 gets added to the URL ...
0
votes
0answers
22 views

Magento 2:An element with a “sellerpage” ID already exists

When i am making ajax call i am getting error 'An element with a "sellerpage" ID already exists'. Here is my controller. namespace Vendor\Module\Controller\Sellers; class Index extends \Magento\...
0
votes
1answer
32 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 ?
0
votes
0answers
10 views

Clone collection magento 1.9

I need to get total count as per filter conditions then need to put the pagination settings on collection. Here is my code: <?php public function getCustomizedProducts($manufact,$page,$...
0
votes
0answers
9 views

Product list pagination missing second parameter (/category1/category2.html)

I created a custom module to handle filters by 2 categories, like: https://example.com/clearance/phones.html. Clearance and phones are both categories. The router is working properly. I'm filtering ...
1
vote
4answers
163 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
147 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
21 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
33 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
221 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="...
1
vote
1answer
35 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
12 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
32 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
109 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 ...
0
votes
0answers
20 views

Issue Magento 1.9.x: Pagination in reverse

We have an ecommerce in Magento 1.9.x and a problem for categories between 11 and 31 products. When the categories has between 11 and 20 products, show this error And when the categories has between ...
1
vote
1answer
89 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
30 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 !
0
votes
0answers
9 views

Pagination missing in module manager as pagination.html is being returned by server as zero bytes, even though it exists on server

Installed a new copy of Magento 2.3.3. I have no pagination in module manager so can only list the first 20 modules. Inspecting the html shows the included file /shop/setup/magento/setup/view/...
2
votes
1answer
54 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 ...
1
vote
2answers
35 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
146 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
0answers
30 views

Update table after success AJAX in Magento 1.x

Update table after success AJAX in Magento 1.x. I want update table after success AJAX. I can update it, but it work wrong for me. I have a pagination of custom table. When i click number, it load ...
0
votes
0answers
39 views

Magento 1.x : When create pagination, show error Call to a member function setCurPage() on null

I followed it, but show error whent create pagination https://blog.magestore.com/magento-grid-on-frontend/ My template <?php echo $this->getPagerHtml() ?> <table id="my-person-table" ...
0
votes
2answers
21 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
28 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
52 views

How to set pager on ajax call?

How to set pager on ajax call on a custom table.
1
vote
1answer
117 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
12 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 ...
0
votes
0answers
10 views

Category page pagination not working in arabic store magento 2.2

I have a site with multi store language(English+Arabic) in magento 2.2. My issue is that, on product category page pagination is working fine if i select English language store but when i change my ...
1
vote
0answers
26 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 ...
0
votes
0answers
36 views

Magento 2.2 option products of bundle are considered as simple product in pagination My Order

With reference to the question Magento 2 option products of bundle are not showing in my orders magento core I have removed the following line to get Bundle products option list my order grid. ...
0
votes
0answers
32 views

Admin, Product page, Grouped Product Grid: need to change default pagination items from 20 to 50

i am searching a way to change the default pagination items number in the grouped product table in the product page form in admin. There is a know bug where you can't drag and drop item from a page to ...
11
votes
1answer
484 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
53 views

Change link for pagination

In magento2 i want to redirect pagination link. I would like the first pagination link (with number 1) to be a category page link. I think it is in pager.html but I do not know how to do this. please ...
0
votes
0answers
28 views

Magento 1.9 Pagination not showing on my custom theme

Inside of toolbar which is located in /app/design/frontend/default/mytheme/template/catalog/product/list/toolbar.phtml I can see there is a echo statement <?php echo $this->getPagerHtml() ?>...
0
votes
0answers
39 views

Magento2.1.9 - Catalogsearch pagination not work

When I'm searching by product name via mini search / advance search but the issue is toolbar.phtml not loading. I added block in catalogsearch_result_index.xml but not loading.
0
votes
0answers
69 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
84 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
232 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
303 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\...
2
votes
0answers
248 views

how to do pagination to display collection at admin panel custom table in magento 2

I'm trying to create a pagination for my collection to display in a .phtml file, but am getting error page Invalid template file: 'Magento_Theme::html/pager.phtml. Here is my code: code/...
0
votes
0answers
75 views

Magento 2 : pagination using knockout

I want to develop pagination of custom collection using knockout. How to implement it? Any help would be appreciated. Thanks.
2
votes
1answer
930 views

Magento2 : Pagination - jump to top of page [closed]

I have problem with next/prev Buttons in Pagination. If user clicks button, it reloads the page (i think) in Ajax at the current page scroll position. Is there any method to force the reload jump to ...
2
votes
0answers
193 views

Magento 1.9 pagination not working

Pagination is not working in Magento 1.9, I have checked pagination setting in admin, everything is okay there. The toolbar is showing with "sorter" and "pager" but pagination is not showing. On ...
1
vote
1answer
31 views

Catalog page loads at the middle of the screen when using pagination - M 2.1.15

When I go to page 2 or 3 it takes me to the lower middle half of the page instead of the top of the next page. Is there a way to make it go to the top of the next page instead?
2
votes
0answers
358 views

How to remove pagination(pager) from My Orders section in My Account (Magento 2)

I am showing all orders, in My orders section of My Account, when the list of orders gets more than 10 Magento creates a pagination(). How to remove that pagination. I am trying to remove pagination ...
1
vote
0answers
173 views

Pagination not showing correct number of items

I have this block with pagination: protected function _prepareLayout() { parent::_prepareLayout(); $this->pageConfig->getTitle()->set(__('Table')); ...
2
votes
1answer
409 views

Remove pagination from order listing in frontend customer account?

I want list all the orders in a single page. how I remove pagination from my orders page in my account dashboard.
0
votes
2answers
361 views

Issue in Category page magento 2

I am getting below error in system.log file. main.CRITICAL: Bucket does not exist [] [] My Main issue is in category list page and search result page I have 50 products inside the category and ...
2
votes
0answers
573 views

Magento 2.2.6 Pagination not working in Category pages

We have upgraded Magento 2.2.3 to 2.2.6. After upgrade page filter is not working. It is loading all the products in category page. The drop down still says 9,18,27. But it is displaying all ...