Skip to main content

Magento 1.4 toolbar error (How to properly upgrade to Magento 1.4)

In case you upgraded to magento 1.4, and noticed that your category listings that require pagination (page 1, 2, 3) no longer show, here's the fix...

1. copy the new 1.4 toolbar.phtml from

app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml

and paste it into your custom theme

app/design/frontend/*/YOURTHEME/template/catalog/product/list/toolbar.phtml

(note: make sure you put this into your currently used theme directory. If you installed a theme via Admin-->System-->Design then get the name of the theme from there)

2. edit your app/design/frontend/*/YOURTHEME/layout/catalog.xml

Find:

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

Replace all instances with:

<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>

3. edit your catalogsearch.xml:

Find:

<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"></block>

Replace all instances with:

<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
</block>
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
</block>

And that should do it... (you'll also probably have to restyle the toolbar, as it will be barebone)

Comments

This is just what I have

This is just what I have looking for.
Thank you very much for posting this solution public.

Hello, Same problem for one

Hello,

Same problem for one of our customer.. thank you to share it..I will surely try it and let you know if that worked.

Regards,
Max

Dude, thanks for this. I

Dude, thanks for this. I upgraded a dev site from 1.4 alpha to 1.4.1 and all of a sudden my blocks in my templates weren't working, this solution worked perfect! Thanks again man!

thankyou so much. It works

thankyou so much. It works like a charm.

Hello there I am tring to fix

Hello there
I am tring to fix this pagening problem from last 1 week...i tried your way as well...i am using magento1.4 with the default template....could you please help me....i really badly need help....

Thanks for this fix, I was

Thanks for this fix, I was surprised to see (or not) that this was missing.

One slight problem, now my

One slight problem, now my search box has disappeared.

Post new comment

The content of this field is kept private and will not be shown publicly.