Set Pagination with Toolbar in frontend .html file












1















I don't have any idea to put pagination. i have to display all order commission details. this is first time to me to create front end so no idea how to create. what are the files needed. pagination with toolbar.










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • have you use any custom extension for the order commission details?

    – Abdul
    Dec 28 '15 at 10:30











  • no i am not use any extension.

    – Monisha M15
    Dec 28 '15 at 10:42
















1















I don't have any idea to put pagination. i have to display all order commission details. this is first time to me to create front end so no idea how to create. what are the files needed. pagination with toolbar.










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • have you use any custom extension for the order commission details?

    – Abdul
    Dec 28 '15 at 10:30











  • no i am not use any extension.

    – Monisha M15
    Dec 28 '15 at 10:42














1












1








1








I don't have any idea to put pagination. i have to display all order commission details. this is first time to me to create front end so no idea how to create. what are the files needed. pagination with toolbar.










share|improve this question
















I don't have any idea to put pagination. i have to display all order commission details. this is first time to me to create front end so no idea how to create. what are the files needed. pagination with toolbar.







magento-1.9






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 3 '18 at 5:59









Teja Bhagavan Kollepara

2,94841847




2,94841847










asked Dec 28 '15 at 9:21









Monisha M15Monisha M15

3318




3318





bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • have you use any custom extension for the order commission details?

    – Abdul
    Dec 28 '15 at 10:30











  • no i am not use any extension.

    – Monisha M15
    Dec 28 '15 at 10:42



















  • have you use any custom extension for the order commission details?

    – Abdul
    Dec 28 '15 at 10:30











  • no i am not use any extension.

    – Monisha M15
    Dec 28 '15 at 10:42

















have you use any custom extension for the order commission details?

– Abdul
Dec 28 '15 at 10:30





have you use any custom extension for the order commission details?

– Abdul
Dec 28 '15 at 10:30













no i am not use any extension.

– Monisha M15
Dec 28 '15 at 10:42





no i am not use any extension.

– Monisha M15
Dec 28 '15 at 10:42










2 Answers
2






active

oldest

votes


















0














I've only used this for product collections but you can give it a try. In the block behind your list PHTML file add the following method



protected function _prepareLayout()
{
parent::_prepareLayout();

$pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
$pager->setAvailableLimit(array(15=>15));
$pager->setCollection($your_collection);

$this->setChild('pager', $pager);

return $this;
}


and add the following in your template file



<?php echo $this->getPagerHtml(); ?>


other solution if any problem raises.




$this->getPagerHtml() in catalogproductlisttoolbar.phtml means you are trying to call getPagerHtml() method of class


Mage_Catalog_Block_Product_List_Toolbar
whereas $this->getPagerHtml() in catalog/product/list.phtml means you are trying to call getPagerHtml() method of class
Mage_Catalog_Block_Product_List where it is not present.
If you want to call $this->getPagerHtml() in list.phtml then first you need to create object of class
Mage_Catalog_Block_Product_List_Toolbar in list.phtml




Example :




$object = new Mage_Catalog_Block_Product_List_Toolbar();
$object->getPagerHtml();



I hope this will help you.






share|improve this answer


























  • also check link :- merch.docs.magento.com/ce/user_guide/catalog/pagination.html

    – denish vachhani
    Dec 28 '15 at 10:37











  • could u tell me. the file structure, which files should be edited, my requirement is when the customer is logged in to the site their commission order details should be shown. with pagination and tool bar

    – Monisha M15
    Dec 28 '15 at 11:27











  • you have to only add <?php echo $this->getPagerHtml(); ?> this will automatically add in .phtml file where you want.

    – denish vachhani
    Dec 28 '15 at 11:30





















0














To get follow this:



echo $this->getLayout()
->createBlock('page/html_pager', 'order_id')
->setCollection($collection)
->toHtml();


by order_id it takes pagination






share|improve this answer


























  • It is working. I hope it will help someone

    – Monisha M15
    Dec 28 '15 at 13:53











  • the above code should place where you need pagination

    – Monisha M15
    Dec 28 '15 at 13:54











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f95170%2fset-pagination-with-toolbar-in-frontend-html-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I've only used this for product collections but you can give it a try. In the block behind your list PHTML file add the following method



protected function _prepareLayout()
{
parent::_prepareLayout();

$pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
$pager->setAvailableLimit(array(15=>15));
$pager->setCollection($your_collection);

$this->setChild('pager', $pager);

return $this;
}


and add the following in your template file



<?php echo $this->getPagerHtml(); ?>


other solution if any problem raises.




$this->getPagerHtml() in catalogproductlisttoolbar.phtml means you are trying to call getPagerHtml() method of class


Mage_Catalog_Block_Product_List_Toolbar
whereas $this->getPagerHtml() in catalog/product/list.phtml means you are trying to call getPagerHtml() method of class
Mage_Catalog_Block_Product_List where it is not present.
If you want to call $this->getPagerHtml() in list.phtml then first you need to create object of class
Mage_Catalog_Block_Product_List_Toolbar in list.phtml




Example :




$object = new Mage_Catalog_Block_Product_List_Toolbar();
$object->getPagerHtml();



I hope this will help you.






share|improve this answer


























  • also check link :- merch.docs.magento.com/ce/user_guide/catalog/pagination.html

    – denish vachhani
    Dec 28 '15 at 10:37











  • could u tell me. the file structure, which files should be edited, my requirement is when the customer is logged in to the site their commission order details should be shown. with pagination and tool bar

    – Monisha M15
    Dec 28 '15 at 11:27











  • you have to only add <?php echo $this->getPagerHtml(); ?> this will automatically add in .phtml file where you want.

    – denish vachhani
    Dec 28 '15 at 11:30


















0














I've only used this for product collections but you can give it a try. In the block behind your list PHTML file add the following method



protected function _prepareLayout()
{
parent::_prepareLayout();

$pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
$pager->setAvailableLimit(array(15=>15));
$pager->setCollection($your_collection);

$this->setChild('pager', $pager);

return $this;
}


and add the following in your template file



<?php echo $this->getPagerHtml(); ?>


other solution if any problem raises.




$this->getPagerHtml() in catalogproductlisttoolbar.phtml means you are trying to call getPagerHtml() method of class


Mage_Catalog_Block_Product_List_Toolbar
whereas $this->getPagerHtml() in catalog/product/list.phtml means you are trying to call getPagerHtml() method of class
Mage_Catalog_Block_Product_List where it is not present.
If you want to call $this->getPagerHtml() in list.phtml then first you need to create object of class
Mage_Catalog_Block_Product_List_Toolbar in list.phtml




Example :




$object = new Mage_Catalog_Block_Product_List_Toolbar();
$object->getPagerHtml();



I hope this will help you.






share|improve this answer


























  • also check link :- merch.docs.magento.com/ce/user_guide/catalog/pagination.html

    – denish vachhani
    Dec 28 '15 at 10:37











  • could u tell me. the file structure, which files should be edited, my requirement is when the customer is logged in to the site their commission order details should be shown. with pagination and tool bar

    – Monisha M15
    Dec 28 '15 at 11:27











  • you have to only add <?php echo $this->getPagerHtml(); ?> this will automatically add in .phtml file where you want.

    – denish vachhani
    Dec 28 '15 at 11:30
















0












0








0







I've only used this for product collections but you can give it a try. In the block behind your list PHTML file add the following method



protected function _prepareLayout()
{
parent::_prepareLayout();

$pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
$pager->setAvailableLimit(array(15=>15));
$pager->setCollection($your_collection);

$this->setChild('pager', $pager);

return $this;
}


and add the following in your template file



<?php echo $this->getPagerHtml(); ?>


other solution if any problem raises.




$this->getPagerHtml() in catalogproductlisttoolbar.phtml means you are trying to call getPagerHtml() method of class


Mage_Catalog_Block_Product_List_Toolbar
whereas $this->getPagerHtml() in catalog/product/list.phtml means you are trying to call getPagerHtml() method of class
Mage_Catalog_Block_Product_List where it is not present.
If you want to call $this->getPagerHtml() in list.phtml then first you need to create object of class
Mage_Catalog_Block_Product_List_Toolbar in list.phtml




Example :




$object = new Mage_Catalog_Block_Product_List_Toolbar();
$object->getPagerHtml();



I hope this will help you.






share|improve this answer















I've only used this for product collections but you can give it a try. In the block behind your list PHTML file add the following method



protected function _prepareLayout()
{
parent::_prepareLayout();

$pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
$pager->setAvailableLimit(array(15=>15));
$pager->setCollection($your_collection);

$this->setChild('pager', $pager);

return $this;
}


and add the following in your template file



<?php echo $this->getPagerHtml(); ?>


other solution if any problem raises.




$this->getPagerHtml() in catalogproductlisttoolbar.phtml means you are trying to call getPagerHtml() method of class


Mage_Catalog_Block_Product_List_Toolbar
whereas $this->getPagerHtml() in catalog/product/list.phtml means you are trying to call getPagerHtml() method of class
Mage_Catalog_Block_Product_List where it is not present.
If you want to call $this->getPagerHtml() in list.phtml then first you need to create object of class
Mage_Catalog_Block_Product_List_Toolbar in list.phtml




Example :




$object = new Mage_Catalog_Block_Product_List_Toolbar();
$object->getPagerHtml();



I hope this will help you.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 26 '17 at 6:12









Teja Bhagavan Kollepara

2,94841847




2,94841847










answered Dec 28 '15 at 10:37









denish vachhanidenish vachhani

3,3001938




3,3001938













  • also check link :- merch.docs.magento.com/ce/user_guide/catalog/pagination.html

    – denish vachhani
    Dec 28 '15 at 10:37











  • could u tell me. the file structure, which files should be edited, my requirement is when the customer is logged in to the site their commission order details should be shown. with pagination and tool bar

    – Monisha M15
    Dec 28 '15 at 11:27











  • you have to only add <?php echo $this->getPagerHtml(); ?> this will automatically add in .phtml file where you want.

    – denish vachhani
    Dec 28 '15 at 11:30





















  • also check link :- merch.docs.magento.com/ce/user_guide/catalog/pagination.html

    – denish vachhani
    Dec 28 '15 at 10:37











  • could u tell me. the file structure, which files should be edited, my requirement is when the customer is logged in to the site their commission order details should be shown. with pagination and tool bar

    – Monisha M15
    Dec 28 '15 at 11:27











  • you have to only add <?php echo $this->getPagerHtml(); ?> this will automatically add in .phtml file where you want.

    – denish vachhani
    Dec 28 '15 at 11:30



















also check link :- merch.docs.magento.com/ce/user_guide/catalog/pagination.html

– denish vachhani
Dec 28 '15 at 10:37





also check link :- merch.docs.magento.com/ce/user_guide/catalog/pagination.html

– denish vachhani
Dec 28 '15 at 10:37













could u tell me. the file structure, which files should be edited, my requirement is when the customer is logged in to the site their commission order details should be shown. with pagination and tool bar

– Monisha M15
Dec 28 '15 at 11:27





could u tell me. the file structure, which files should be edited, my requirement is when the customer is logged in to the site their commission order details should be shown. with pagination and tool bar

– Monisha M15
Dec 28 '15 at 11:27













you have to only add <?php echo $this->getPagerHtml(); ?> this will automatically add in .phtml file where you want.

– denish vachhani
Dec 28 '15 at 11:30







you have to only add <?php echo $this->getPagerHtml(); ?> this will automatically add in .phtml file where you want.

– denish vachhani
Dec 28 '15 at 11:30















0














To get follow this:



echo $this->getLayout()
->createBlock('page/html_pager', 'order_id')
->setCollection($collection)
->toHtml();


by order_id it takes pagination






share|improve this answer


























  • It is working. I hope it will help someone

    – Monisha M15
    Dec 28 '15 at 13:53











  • the above code should place where you need pagination

    – Monisha M15
    Dec 28 '15 at 13:54
















0














To get follow this:



echo $this->getLayout()
->createBlock('page/html_pager', 'order_id')
->setCollection($collection)
->toHtml();


by order_id it takes pagination






share|improve this answer


























  • It is working. I hope it will help someone

    – Monisha M15
    Dec 28 '15 at 13:53











  • the above code should place where you need pagination

    – Monisha M15
    Dec 28 '15 at 13:54














0












0








0







To get follow this:



echo $this->getLayout()
->createBlock('page/html_pager', 'order_id')
->setCollection($collection)
->toHtml();


by order_id it takes pagination






share|improve this answer















To get follow this:



echo $this->getLayout()
->createBlock('page/html_pager', 'order_id')
->setCollection($collection)
->toHtml();


by order_id it takes pagination







share|improve this answer














share|improve this answer



share|improve this answer








edited May 26 '17 at 6:19









Alessandro Ronchi

2,87611626




2,87611626










answered Dec 28 '15 at 13:52









Monisha M15Monisha M15

3318




3318













  • It is working. I hope it will help someone

    – Monisha M15
    Dec 28 '15 at 13:53











  • the above code should place where you need pagination

    – Monisha M15
    Dec 28 '15 at 13:54



















  • It is working. I hope it will help someone

    – Monisha M15
    Dec 28 '15 at 13:53











  • the above code should place where you need pagination

    – Monisha M15
    Dec 28 '15 at 13:54

















It is working. I hope it will help someone

– Monisha M15
Dec 28 '15 at 13:53





It is working. I hope it will help someone

– Monisha M15
Dec 28 '15 at 13:53













the above code should place where you need pagination

– Monisha M15
Dec 28 '15 at 13:54





the above code should place where you need pagination

– Monisha M15
Dec 28 '15 at 13:54


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f95170%2fset-pagination-with-toolbar-in-frontend-html-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What other Star Trek series did the main TNG cast show up in?

Berlina muro

Berlina aerponto