Magento getLoadedProductCollection vs getProductCollection (Configurable Swatches issue)
<p>Right now I have a custom category page that loops through all of the categories child categories, and their grandchild categories and echoes out all of their products in different sections on the page.</p>

<p>The top of the list.phtml file calls </p>

<pre><code>$_productCollection=$this-&gt;getLoadedProductCollection();
</code></pre>

<p>Which allows configurable swatches to work on regular category pages.</p>

<p>I'm loading the subcategories by doing this...</p>

<pre><code>$childCategory = Mage::getModel('catalog/category')-&gt;load($childId);
</code></pre>

<p>and </p>

<pre><code>$grandChildCategory = Mage::getModel('catalog/category')-&gt;load($grandChildId);
</code></pre>

<p>Which allows me to create a grid of their products, however it seems I have to load their products this way...</p>

<pre><code>$_gcProductCollection = $grandChildCategory-&gt;getProductCollection()-&gt;addAttributeToSelect('*');
</code></pre>

<p>Which leaves all the json data for the configurable swatches js empty. Replacing each of them with this...</p>

<pre><code>$_gcProductCollection = $this-&gt;getLoadedProductCollection();
</code></pre>

<p>works and pulls the data for the swatches, however then I end up with EVERY product from each category in every single section, with the swatches only working on the top one.</p>

<p>Is there a way to filter getLoadedProductCollection, or use getProductCollection with enough data to where the swatches script works?</p>