1

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.

1 Answer 1

1

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"/>
        </reference>
 </catalog_category_layered>

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.

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

Your Answer

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

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