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.

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.

  • 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 '17 at 9:24
  • look my update. – PЯINCƏ Jun 7 '17 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 '17 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, privacy policy and cookie policy

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