Questions tagged [pagination]

Denotes questions related to collections pagination.

Filter by
Sorted by
Tagged with
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. ...
1
vote
1answer
406 views

magento pagination for ul li tag

i am working with magento(1.9), the pagination is not properly working for ul li tag. **code in phtml file** <?php $collection = $this->getCollection(); ?> <div class="article_page"> ...
0
votes
1answer
302 views

The string “Allproducts” isn't included in the URL Redirect in the pager

In CMS > Pages I've created an all products page. The content has this in it: {{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="100" ...
7
votes
1answer
1k views

Show different number of products in category page

I am trying to show different number of products in category but it is only working on page 1. I want to show 22 products on page1 and rest all the pages 20 products per page. I managed to change by ...
0
votes
0answers
1k views

Number of results returned in search, pagination not working

Regardless of the setting for number of results per page. I'm getting all results returned (they are all correct matching results). This becomes a problem with categories or searches which have ...
0
votes
2answers
1k views

Add Custom Collection Pagination to Existing Category Page

To add pagination to a custom product or category collection in my magento store I've created a custom module. I then configure the toolbar, pager etc in my _prepareLayout() function in ...
1
vote
0answers
509 views

Multiple Grids search, filter and pagination don't work correctly [closed]

I added a second grid to the Catalog -> Manage Products page. This new grid (Grid 2) references a collection other than Catalog/Product. The old grid (Grid 1) I did not change. When I load the page,...
0
votes
1answer
73 views

Magento fronted “shop not available” when trying to render pagination in list.phtml

I wanted to display all products from my store on homepage, to do that I used this piece of code in my CMS Home Page item. {{block type="catalog/product_list" name="home.catalog.product.list" alias="...
0
votes
0answers
673 views

Magento Quick Search showing all products, no pagination

Magento Quick Search showing all products with no pagination Though 9 per page is selected, but still showing all products with that search
1
vote
1answer
3k views

Search results page - wrong number of products per page

In search results page, I'm not getting the correct number of products on each page. I have set the following in local.xml file: <?xml version="1.0"?> <layout version="0.1.0"> <...
0
votes
1answer
324 views

recreating block structure getChild calls for templates on widget

<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> <block type="page/html_pager" name="product_list_toolbar_pager"/> &...
1
vote
2answers
770 views

How to Add sorter in my custom product collection page

my block is public function getPagerHtml() { return $this->getChildHtml('pager'); } public function getToolbarHtml() { return $this->getChildHtml('toolbar'); } <?php echo $this-&...
10
votes
5answers
3k views

Pagination and Sorting not working

For my custom module I have get product by manufacturer. For template I have copied list.phtml. On the template file pagination appears but it shows all product instead of selected limit per page. ...
1
vote
1answer
312 views

Missing argument 2 for Mage_Catalog_Block_Product_List_Upsell::setItemLimit()

I get an exception Missing argument 2 for Mage_Catalog_Block_Product_List_Upsell::setItemLimit() but it only occurs when I have Magento Developer Mode enabled. However, this occurs only when I have ...
1
vote
1answer
3k views

Magento using setCurPage for reviews pagination

I'm using the allreviews Magento extension so that I have a page with all reviews however I need to add pagination to this page. The last bit I'm stuck with is essentially adding the limit to the ...
0
votes
1answer
852 views

Toolbar in custom page template

i need add custom page template toolbar with sort by and pagination, because my template custom page shows a list of sub-categories in this category and need add pagination with sorting Thanks
2
votes
2answers
1k views

How can I hide the Paging in the Grid?

I used the Grid to create a report which shows at most 5 rows so I'd like to hide the Paging altogether. Does anyone know how to hide it? Thank you for any help! Tim
2
votes
1answer
562 views

Pagination - How to add code to first page only

Please could someone point me in the right direction of how to add code to only the first page of our paginated results (Magento categories)? This is what I've tried so far: if (!isset($_SERVER['...
2
votes
0answers
142 views

Pagination for products, coupons and orders by usin api

How to use pagination for products, orders and coupons lists using api? For now i use SOAP v2. Soap v2 has a filters, but i cant use them for pagination, because they allow to define specific ...
0
votes
1answer
3k views

Magento 1.9 not showing pagination

I'm using Magento's default theme (rwd) as a base for my first work with magento, my client inserted some products but the pagination is not showing! The products page was done by a CMS page in the ...
1
vote
2answers
4k views

Change default products per page in search results

When a user performs a search the default Magento search result pages offers pagination, it defaults to 9 items per page. I'd like it to default to 30 items per page. How is this done?
0
votes
1answer
8k views

How to add toolbar and pager to custom product collection in magento?

my local/mage/catalog/prodoct/newwall.php protected function _getProductCollection() { if (is_null($this->_productCollection)) { $brand_id = $_GET['brand_id']; $collection = Mage::...
0
votes
1answer
615 views

Search Results - Pagination Error

I'm currently using Magento 1.9. When i do a search in the search bar, search always returns me a page with all results(even above 900 results,so it's really really slow). Pagination of results ...
0
votes
2answers
2k views

In Grid want to add ajax pagination [closed]

I have grid at admin section. I want to add ajax-pagination to stop reloading page. Any way code or module to achieve this?
1
vote
2answers
3k views

Category Product Page Not displaying pagination

Something weird happened and now my magento category page is not showing pagination. I tried searching every where but my store is still not showing page navigation(pagination). (Magento 1.8 on nginx-...
1
vote
1answer
379 views

Magento pagination not working (1.7.0.2)

I made an online-shop for a friend of mine. It works very well and everything is fine and so on. But some days ago the Pagination stopped working. It worked fine for some months. Since then I haven´t ...
0
votes
1answer
230 views

Add Pagination/Toolbar using array of product ID's

I have a custom view that uses a range of conditional statements on a collection to narrow down a specific set of product ids. I then need to be able to display these with the pagination and toolbar ...
0
votes
1answer
1k views

How to add pagination in subcategory collection in magento?

I have written following code to display subcategories <ul class=""> <?php $_categories=$this->getCurrentChildCategories(); if($_categories->count()): $categorycount = 0; foreach ...
0
votes
2answers
3k views

Magento Ajax toolbar/pagination not loading correctly for root product category

I'm currently learning Magento and have a strange issue with the toolbar/pagination Ajax script. Custom theme used - BuyShop I'd usually leave code examples, however, I can't work out which code to ...
0
votes
1answer
1k views

Per page items not working in Magento 1.8.1

The "Per page" items dropdown in my magento website is not working at all. The default value is set to 12 items (list includes 12,24,36) , but loads all products by default. When i select 24, the page ...
1
vote
1answer
172 views

Layered navigation, going to other page doesnt work

I've done an upgrade on a Magento webshop and on the upgraded theme (Joomlart) I've got a problem with the layered navigation in combination with pagination. Was working before I did and upgrade. (...
2
votes
4answers
2k views

How to call Mage_Page_Block_Html_Pager class in list.phtml

I am wanting to include a larger than normal 'next page' type button in the list.phtml template whilst still having the normal pagination from pager.phtml The function I'm wanting to use is found in ...
0
votes
1answer
338 views

Making a custom collection support pagination [duplicate]

I have the following collection. Basically, it returns a collection of customer entities joined with an attribute joined with the number of reward points which are going to expire for this month. $...
0
votes
1answer
2k views

How to show the total number of pages in the pagination bar

I need to change the display of pagination in the category page. Current format is : 1 2 3 4 5 next page and i need to be 1 2 3 4 5 ... 20 next page where 20 is the number of total pages. Do you ...
3
votes
2answers
8k views

Create magento pagination in custom product collection inside phtml file

First of all, i didn't create custom module to handle this product collection, so, i just put model inside phtml file, i know it's bad implementation, i'm new in magento and i have to do small ...
0
votes
1answer
1k views

Getting products count and products per page

I'm using this code getting products. And also using some addAttributeToFilter method for filter. $collection = Mage::getResourceModel('reports/product_collection') ->addAttributeToSelect('*') ...
2
votes
1answer
341 views

Collection pagination skipping records

I'm having trouble with Magento's built-in collection paging skipping over many records. I am attempting to optimize a product feed generator that dumps a bunch of product data to a file, and have ...
2
votes
1answer
1k views

Magento SEO Pagination like /page/2 instead of ?p=2

i am trying to play around with pager.phtml, basicaly i do not like the ?p=2 etc that magento use. I have come through this code that will change the pagination to what i want but this brings of ...
2
votes
1answer
209 views

I want to create a custom model that pulls data from an external system via web service calls

I want to be able to page through this data and I was wondering if Magento supports the ability to force a new call into the model whenever a user clicks on the next button, or the previous button. E....
1
vote
1answer
1k views

Grid loads all the records in one page?

I have modified the Abandoned cart grid collection so it can have some additional columns. But the issue is all the records are showing in one page. I tried with setPageSize(). But it didn't work out. ...
3
votes
1answer
6k views

Magento count pagination sizes

Is there any way to count how many pages there is in pagination? I'm not talking about Collection count, but something like pagination count maybe?
0
votes
1answer
5k views

Call a pagination block in Category page [duplicate]

In the product display page(i.e., category page in catalog/product/list.phtml of grid view), before and after the product items Toolbar block is being displayed(with this <?php echo $this->...
2
votes
2answers
12k views

Add pagination to any block's collection

I have a number of collections which have blocks that output the contents to frontend routes (My Account, frontend features). I have need to paginate some of these. I know that pagination methods ...

1 2 3
4