0

Is there a way to get Product List Toolbar into breadcrumbs.phtml? All I want to do is display toolbar options inside the breadcrumbs wrapper.

2 Answers 2

0

in local.xml

<your_layout_handle>
    <reference name="root">
        <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"/>
    </reference>
</your_layout_handle>

in app/design/frontend/{package}/{theme}/template/page/1column.phtml if you are using a 1column template, then add this below a breadcrumbs child:

<?php echo $this->getChildHtml('breadcrumbs') ?>
<?php echo $this->getChildHtml('product_list_toolbar') ?>

Nb: you can add a new crumb <action method="addCrumb"> but not directly a block.

3
  • I did that. But it gives me a Fatal Error Fatal error: Call to a member function getSize() on null
    – DK at EME
    Jun 7, 2017 at 9:24
  • look my update.
    – PЯINCƎ
    Jun 7, 2017 at 10:08
  • I'm sorry, but I'm still getting the same error. I did try with catalog_category_view handle and default handle.
    – DK at EME
    Jun 7, 2017 at 10:24
0

https://magento.stackexchange.com/a/1240/54615

If you want to apply this on product listing page change catalog_category_layered to catalog_category_view

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.