<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Yet Another &#8220;Hiding Out-Of-Stock Products&#8221; Update</title>
	<atom:link href="http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/feed/" rel="self" type="application/rss+xml" />
	<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 30 Dec 2011 22:08:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: magento themes</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-86</link>
		<dc:creator>magento themes</dc:creator>
		<pubDate>Thu, 14 Apr 2011 16:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-86</guid>
		<description>Bug fixing is a very important aspect in programming.It also caused several sleepless nights for me.Coding may be different i can get the idea.Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Bug fixing is a very important aspect in programming.It also caused several sleepless nights for me.Coding may be different i can get the idea.Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Mollenhour</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-65</link>
		<dc:creator>Colin Mollenhour</dc:creator>
		<pubDate>Tue, 07 Dec 2010 20:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-65</guid>
		<description>Yes, you would just need to add a product attribute (can be done via 
&lt;br&gt;Catalog &gt; Attributes) and then modify the filter to account for that 
&lt;br&gt;attribute&#039;s value.</description>
		<content:encoded><![CDATA[<p>Yes, you would just need to add a product attribute (can be done via<br />
<br />Catalog &gt; Attributes) and then modify the filter to account for that<br />
<br />attribute&#39;s value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-64</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 07 Dec 2010 14:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-64</guid>
		<description>Hi Colin, Thanks for writing this module, it is very useful. One question, for certain products I want them to be able to be backordered. Is there anyway I can disable the hiding for certain products?</description>
		<content:encoded><![CDATA[<p>Hi Colin, Thanks for writing this module, it is very useful. One question, for certain products I want them to be able to be backordered. Is there anyway I can disable the hiding for certain products?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-52</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Thu, 14 Jan 2010 15:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-52</guid>
		<description>I would instead observe an event. Off the top of my head I think cataloginventory_stock_status_save_after would be a good starting point. If the status is changed to out of stock then disable the related product. I haven&#039;t fully thought this through or tested but I think it could work. Note, then, that you would no longer need the Lucky_InStockOnly module.</description>
		<content:encoded><![CDATA[<p>I would instead observe an event. Off the top of my head I think cataloginventory_stock_status_save_after would be a good starting point. If the status is changed to out of stock then disable the related product. I haven&#8217;t fully thought this through or tested but I think it could work. Note, then, that you would no longer need the Lucky_InStockOnly module.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: point4design</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-51</link>
		<dc:creator>point4design</dc:creator>
		<pubDate>Thu, 14 Jan 2010 12:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-51</guid>
		<description>For example, is there a script I could run (by cron) to set products to disabled if the stock equals zero?</description>
		<content:encoded><![CDATA[<p>For example, is there a script I could run (by cron) to set products to disabled if the stock equals zero?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: point4design</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-50</link>
		<dc:creator>point4design</dc:creator>
		<pubDate>Wed, 13 Jan 2010 21:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-50</guid>
		<description>Thanks for the quick response. Do you know a way then to easily &#039;disable&#039; products that are out of stock?</description>
		<content:encoded><![CDATA[<p>Thanks for the quick response. Do you know a way then to easily &#8216;disable&#8217; products that are out of stock?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-49</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Wed, 13 Jan 2010 18:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-49</guid>
		<description>This is the &quot;Known Bug&quot; which is really a limitation of Magento&#039;s query design. I fixed this for a client (triercopenhagen.com) a few months ago but it took *forever* and the solution is not something that is readily distributable and it isn&#039;t tested with grouped products and simple products and various other Magento features. The way the layered nav query is constructed is completely backwards from the original and it is quite complex so I don&#039;t know if I can fully recommend going down that path.. I think Varien made a huge design mistake when they decided to not have the ability to hide out of stock products built into the core.</description>
		<content:encoded><![CDATA[<p>This is the &#8220;Known Bug&#8221; which is really a limitation of Magento&#8217;s query design. I fixed this for a client (triercopenhagen.com) a few months ago but it took *forever* and the solution is not something that is readily distributable and it isn&#8217;t tested with grouped products and simple products and various other Magento features. The way the layered nav query is constructed is completely backwards from the original and it is quite complex so I don&#8217;t know if I can fully recommend going down that path.. I think Varien made a huge design mistake when they decided to not have the ability to hide out of stock products built into the core.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: point4design</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-48</link>
		<dc:creator>point4design</dc:creator>
		<pubDate>Wed, 13 Jan 2010 17:13:44 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-48</guid>
		<description>I&#039;m having a problem with the extension. I have a &#039;size&#039; attribute that I use on many of my configurable products. I have some of these configurable items in a clearance section and this is the only category I use layered navigation on (just activated it). I&#039;ve noticed that in the layered navigation for the size attribute it is showing products that don&#039;t have any stock. Category is here: http://www.wildernessrunning.com/shop/index.php/screaming-deals. If you click the &#039;extra large&#039; in the layered nav on the right, the first product listed shouldn&#039;t be there as it doesn&#039;t have any extra large in stock. Can you help me figure this out?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having a problem with the extension. I have a &#8216;size&#8217; attribute that I use on many of my configurable products. I have some of these configurable items in a clearance section and this is the only category I use layered navigation on (just activated it). I&#8217;ve noticed that in the layered navigation for the size attribute it is showing products that don&#8217;t have any stock. Category is here: <a href="http://www.wildernessrunning.com/shop/index.php/screaming-deals" rel="nofollow">http://www.wildernessrunning.com/shop/index.php/screaming-deals</a>. If you click the &#8216;extra large&#8217; in the layered nav on the right, the first product listed shouldn&#8217;t be there as it doesn&#8217;t have any extra large in stock. Can you help me figure this out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-45</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Sat, 07 Nov 2009 17:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-45</guid>
		<description>saho, the filter can be applied like so:
&lt;pre&gt;&lt;code&gt;Mage::getSingleton(&#039;cataloginventory/instockonly&#039;)-&gt;addInStockFilterToCollection($products);&lt;/code&gt;&lt;/pre&gt;
Although the above is not necessary if you are already applying the typical &quot;visibility&quot; filter since the extension overrides those methods. Example:
&lt;pre&gt;&lt;code&gt;Mage::getSingleton(&#039;catalog/product_visibility&#039;)-&gt;addVisibleInCatalogFilterToCollection($products);&lt;/code&gt;&lt;/pre&gt;
That is the proper replacement for the &lt;code&gt;addAttributeToFilter(&#039;visibility&#039;, 4)&lt;/code&gt; in your code.</description>
		<content:encoded><![CDATA[<p>saho, the filter can be applied like so:</p>
<pre><code>Mage::getSingleton('cataloginventory/instockonly')->addInStockFilterToCollection($products);</code></pre>
<p>Although the above is not necessary if you are already applying the typical &#8220;visibility&#8221; filter since the extension overrides those methods. Example:</p>
<pre><code>Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products);</code></pre>
<p>That is the proper replacement for the <code>addAttributeToFilter('visibility', 4)</code> in your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saho</title>
		<link>http://colin.mollenhour.com/2009/09/28/yet-another-hiding-out-of-stock-products-update/comment-page-1/#comment-44</link>
		<dc:creator>saho</dc:creator>
		<pubDate>Fri, 06 Nov 2009 21:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-44</guid>
		<description>Hi Colin,

I could not live without this extension. Great work!!
I was wondering if this class could be used in other places for instance I am using a gbase type feed but it pulls all configurable products regardless of whether or not they have out of stock associated products.

You mention above &quot;First, the function that can be used on any product collection to filter out of stock products:&quot;

Is it possible it could be used in a feed script in this way?

//GET THE PRODUCTS	
$products = Mage::getModel(&#039;catalog/product&#039;)-&gt;getCollection();
$products-&gt;addAttributeToFilter(&#039;status&#039;, 1); // enabled
$products-&gt;addAttributeToFilter(&#039;visibility&#039;, 4); // catalog, search
$products-&gt;addAttributeToSelect(&#039;*&#039;);
$prodIds = $products-&gt;getAllIds();

Thanks in advance for any insight.</description>
		<content:encoded><![CDATA[<p>Hi Colin,</p>
<p>I could not live without this extension. Great work!!<br />
I was wondering if this class could be used in other places for instance I am using a gbase type feed but it pulls all configurable products regardless of whether or not they have out of stock associated products.</p>
<p>You mention above &#8220;First, the function that can be used on any product collection to filter out of stock products:&#8221;</p>
<p>Is it possible it could be used in a feed script in this way?</p>
<p>//GET THE PRODUCTS<br />
$products = Mage::getModel(&#8216;catalog/product&#8217;)-&gt;getCollection();<br />
$products-&gt;addAttributeToFilter(&#8216;status&#8217;, 1); // enabled<br />
$products-&gt;addAttributeToFilter(&#8216;visibility&#8217;, 4); // catalog, search<br />
$products-&gt;addAttributeToSelect(&#8216;*&#8217;);<br />
$prodIds = $products-&gt;getAllIds();</p>
<p>Thanks in advance for any insight.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

