Upgrade theme pager to Magento 1.4

Share

Working on a 1.3 version Magento theme I got a problem. After adding products to a category when I tried to list the products in the store it just give me Magento’s error page.

When I opened the report I noticed a problem in my toolbar.phtml

Using the 1.3 version theme in a 1.4 installation you can not run the pager in the product list (1, 2, 3, 4…) correctly.

The solution is quite simple. We will put the new pager method in our 1.3 version theme:

1. Replace

Replace the toolbar.phtml located in:

app/design/frontend/default/YOUR_THEME/template/catalog/product/list

With the one in:

app/design/frontend/base/default/template/catalog/product/list

2. Look for

In the catalog.xml look for the line:

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

Then add the line just below:

<block type=”page/html_pager” name=”product_list_toolbar_pager”/>

3. Replace again

Replace the pager.phtml located in

app/desin/frontend/default/YOUR_THEME/template/page/html

With the one in:

app/design/frontend/base/default/template/page/html

Done!

Now it should not give you any error and the product list should work fine.

Leave a Reply

You must be logged in to post a comment.