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.

look for catalogsearch.xml

look for catalogsearch.xml and make sure you're not using an old one... just copy/paste the one from the app/design/frontend/base/default/layout to your template directory/folder....

or make sure it's not commented out...

e.g. search for:

topSearch

usually located in:
app/design/frontend/default/YOURTEMPLATE/template/page/html/header.phtml or
app/design/frontend/base/default/template/page/html/header.phtml
or just search for "header.phtml" if you don't know which one is being used by magento...

it will look like this:

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

Depending on your template, the search can be other places too...

hi, thanks for this article

hi, thanks for this article it.
But i think the problem is with the

<?php
echo $this->getPagerHtml()
?>

..

It does not work on me... :-(

This didn't work for me , and

This didn't work for me , and I think dunhakdis is right it has something to do with pager.html file.

Follow the tutorial there

Follow the tutorial there :

http://www.sonassi.com/knowledge-base/magento-1-4-install-errors/

Helps you fixing the toolbar error
template/catalog/product/list/toolbar.phtml on line 53

Post new comment

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