<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog for the Web Programmers &#187; undefined index</title>
	<atom:link href="http://blog.chandanweb.com/tags/undefined-index/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.chandanweb.com</link>
	<description>A useful blog with code assitance on Typo3, Drupal, PHP, Apache, OpenSSL and PHP Frameworks</description>
	<lastBuildDate>Wed, 25 Jan 2012 08:35:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Magento &#8211; undefined index in &#8220;toolbar.phtml&#8221; &#8211; after changing default sort by</title>
		<link>http://blog.chandanweb.com/magento/magento-undefined-index-in-toolbar-phtml-after-changing-default-sort-by</link>
		<comments>http://blog.chandanweb.com/magento/magento-undefined-index-in-toolbar-phtml-after-changing-default-sort-by#comments</comments>
		<pubDate>Fri, 19 Feb 2010 07:38:52 +0000</pubDate>
		<dc:creator>spabhat</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[custom toolbar.phtml]]></category>
		<category><![CDATA[sort by]]></category>
		<category><![CDATA[undefined index]]></category>

		<guid isPermaLink="false">http://blog.chandanweb.com/uncategorized/magento-undefined-index-in-toolbar-phtml-after-changing-default-sort-by</guid>
		<description><![CDATA[Recently I added a new product-attribute and it was set to be the default sortby attribute. To my surprise, I used to get an undefined index on some categories. I failed to get a clear solution in any of the article from Magentocommerce site. On further investigation I realised that just setting the default sort [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I added a new product-attribute and it was set to be the default sortby attribute. To my surprise, I used to get an undefined index on some categories. <br/>I failed to get a clear solution in any of the article from Magentocommerce site. On further investigation I realised that just setting the default sort by option will not be sufficient. <br/>It is also necessary to check if you have selected this new attribute in the list of &#8220;Available Product Listing Sort by&#8221; for the category which is causing this issue. <br/>So I logged into Magento BE, and used following path <br/><strong>Catalog &gt;&gt; Manage Categories &gt;&gt; Selected the category that raised the error &gt;&gt; Display Settings [TAB] &gt;&gt; Available Product Listing Sort by <br/></strong> Her I noticed that the new product attribute was not selected!!! Seems Simple, still&#8230;!!! <br/><br/>I am not sure if this error can also get triggered when we use default Toolbar.phtml without any modification.</p>
<h4>Additional info:</h4>
<p><strong>Related to</strong>: A custom designed toolbar.phtml which was primarily used to modify list of sortby options. <br/><strong>Scenario</strong>: Error gets displayed when I click on a root category or when I try to use magento search. <br/><strong>Quick Solution</strong>: Make sure you have selected this new attribute in the list of &#8220;Available Product Listing Sort by&#8221; for the category that caused this error. <br/><br/>I am sure this might be rare case, but it can happen. Happy shopping!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chandanweb.com/magento/magento-undefined-index-in-toolbar-phtml-after-changing-default-sort-by/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

