Bug in Magento 1.4.1.1: Pagination links missing in tagged product list

August 5, 2012  |  1 Comments  |  by Raj (MagePsycho)  |  Latest, Magento

Today, I noticed one bug in Magento 1.4.1.1: Pagination links (Page: 1, 2, 3 …) were missing in tagged product list.

Pagination bug in tagged product list


After looking into later version of Magento 1.5.x, it was found that issue was due to following missing blocks in ‘tag_product_list’ handle of layout file: app/design/frontend/[interface]/[theme]/layout/tag.xml:

<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>

Existing XML code in Magento 1.4.1.1

<tag_product_list translate="label">
	<label>Tagged Products List</label>
	<!-- Mage_Tag -->
	<reference name="content">
		<block type="tag/product_result" name="tag_products" template="catalogsearch/result.phtml">
			<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"></block>
			<action method="setListOrders"/>
			<action method="setListModes"/>
			<action method="setListCollection"/>
		</block>
	</reference>
</tag_product_list>

Fixed XML code

<tag_product_list translate="label">
	<label>Tagged Products List</label>
	<!-- Mage_Tag -->
	<reference name="content">
		<block type="tag/product_result" name="tag_products" template="catalogsearch/result.phtml">
			<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>
			<action method="setListOrders"/>
			<action method="setListModes"/>
			<action method="setListCollection"/>
		</block>
	</reference>
</tag_product_list>

Using above xml code instead, will fix the issue of missing pagination links in tagged product list.

Fixed Pagination

Hope this helps somebody.

Posted in Latest, Magento and tagged , , . Bookmark the permalink.

About Raj (MagePsycho)

Raj, the guy behind MagePsycho is a Zend PHP5 Certified Engineer, Magento Certified Developer, Magento Moderator / Freelancer with specialization in web applications (CMS, E-Commerce, ERP etc.). Catch him on: Twitter: @magepsycho Skype: magentopycho
  • Hey just wanted to give you a quick heads up and let you know
    a few of the pictures aren’t loading properly. I’m not sure why but I think its a
    linking issue. I’ve tried it in two different browsers and both show the same outcome.