Magento 1.4 toolbar error (How to properly upgrade to Magento 1.4)
Posted Thu, 03/04/2010 - 12:55pm
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
by Ivan - 04/25/2010 - 7:44am
This is just what I have looking for.
Thank you very much for posting this solution public.
Hello, Same problem for one
by webhostuk - 05/11/2010 - 10:49pm
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
by Clay McIlrath - 05/12/2010 - 4:52pm
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
by Eshban - 05/28/2010 - 10:17pm
thankyou so much. It works like a charm.
Hello there I am tring to fix
by Anonymous - 06/27/2010 - 7:22pm
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
by Mike - 06/30/2010 - 6:18am
Thanks for this fix, I was surprised to see (or not) that this was missing.
One slight problem, now my
by Mike - 06/30/2010 - 7:08am
One slight problem, now my search box has disappeared.
look for catalogsearch.xml
by duntuk - 08/20/2010 - 4:18pm
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
by dunhakdis - 12/29/2010 - 2:48am
hi, thanks for this article it.
But i think the problem is with the
<?phpecho $this->getPagerHtml()
?>
..
It does not work on me... :-(
This didn't work for me , and
by John Demian - 01/07/2011 - 2:17am
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
by Anonymous - 01/18/2011 - 6:54am
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