<?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>Wed, 18 Aug 2010 18:42:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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 &#8217;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(&#8217;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>
	<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-43</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Fri, 06 Nov 2009 05:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-43</guid>
		<description>I believe even the default Magneto installation should hide out of stock options on the configurable dropdowns. Make sure you actually set the simple product to &quot;Out Of Stock&quot; because it is possible for it to be &quot;In Stock&quot; with 0 qty if you set it that way initially.</description>
		<content:encoded><![CDATA[<p>I believe even the default Magneto installation should hide out of stock options on the configurable dropdowns. Make sure you actually set the simple product to &#8220;Out Of Stock&#8221; because it is possible for it to be &#8220;In Stock&#8221; with 0 qty if you set it that way initially.</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-42</link>
		<dc:creator>point4design</dc:creator>
		<pubDate>Fri, 06 Nov 2009 02:09:04 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-42</guid>
		<description>Quick question. I installed this on my site and it did hide the options that are out of stock on my configurable products, but I just setup a brand new product and one of the items is out of stock (I don&#039;t have inventory for it yet). But it&#039;s showing as an option in the drop down?</description>
		<content:encoded><![CDATA[<p>Quick question. I installed this on my site and it did hide the options that are out of stock on my configurable products, but I just setup a brand new product and one of the items is out of stock (I don&#8217;t have inventory for it yet). But it&#8217;s showing as an option in the drop down?</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-39</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Thu, 22 Oct 2009 08:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://colin.mollenhour.com/?p=84#comment-39</guid>
		<description>@drew: Isn&#039;t this already the case? On my test store (the sample data) this is already how it works.</description>
		<content:encoded><![CDATA[<p>@drew: Isn&#8217;t this already the case? On my test store (the sample data) this is already how it works.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
