Hi i have a toolbar like below image.enter image description here

I want to add new "Show" select box like below image.

enter image description here

For this i have added select box code directly into the toolbar.phtml file. But I don't like to update any existing phtml code. I plan to develop like a extension. So Is any way to do this via layout?

Please give me any suggestion to how to achieve this like extension.


My Answer is below

<catalog_category_layered translate="label">
        <reference name="product_list">
            <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="customcatalog/mytoolbar.phtml"/>

I added this line into my layout file. It will called mytoolbar.phtml file instead of catalog product toolbar.phtml

I copied all the codes from toolbar.phtml file into mytoolbar.phtml and added my selectbox code. It is working fine.

  • Please let me know is this good way or not. – Srihari Jun 29 '16 at 13:23

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.