title: Magento: Load a particular product collection
body: <p>I just want to do a simple product collection by extending Mage_Catalog_Block_Product_List. Is something not ok here and i can't figure out what: </p>
  
  <p>community/block</p>
  
  <pre><code>class folder_subfolder_Block_Mage_Catalog_Product_List extends Mage_Catalog_Block_Product_List
  {
      public function getLoadedProductCollection($limit)
      {
         $collection = parent::_getProductCollection();
  
         $collection      
                          -&gt;clear()
                          -&gt;setPageSize($limit)
                          -&gt;addOrder('entity_id')
                          -&gt;joinField(
                                  'qty',
                                  'cataloginventory/stock_item',
                                  'qty',
                                  'product_id=entity_id',
                                  '{{table}}.stock_id=1',
                                  'left'
                              )
                          -&gt;addAttributeToFilter('qty', array('eq' =&gt; 0))
                          -&gt;load();
  
          return  $collection;
      }
  
  }
  </code></pre>
  
  <p>Also have an empty class Helper and etc config.xml: </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
      &lt;modules&gt;
          &lt;Folder_Rkproductlists&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;/Folder_Rkproductlists&gt;
      &lt;/modules&gt;
      &lt;global&gt;
          &lt;helpers&gt;
              &lt;rkproductlists&gt;
                  &lt;class&gt;Folder_Subfolder_Helper_Data&lt;/class&gt;
              &lt;/rkproductlists&gt;
          &lt;/helpers&gt;
          &lt;blocks&gt;
               &lt;rkproductlists&gt; 
                  &lt;class&gt;Folder_Subfolder_Block_Mage_Catalog_Product_List&lt;/class&gt;
               &lt;/rkproductlists&gt;
          &lt;/blocks&gt;
      &lt;/global&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>tried toload this collection by: </p>
  
  <pre><code>&lt;reference name="content"&gt;
  &lt;block type="subfolder/mage_catalog_product_list"  template="catalog/product/templatename.phtml"&gt;
          &lt;action method="setCategoryId"&gt;&lt;category_id&gt;54&lt;/category_id&gt;&lt;/action&gt;
          &lt;action method="setLimit"&gt;&lt;value&gt;3&lt;/value&gt;&lt;/action&gt;
      &lt;/block&gt;
  &lt;/reference&gt;
  </code></pre>