title: Magento - Retrieve Layered Navigation Attribute ID
body: <p>I'm currently working with Magento CE 1.X, specifically in constructing a product view wrapping the simple products within their configurable product for a grouped display.</p>
  
  <p>The issue I was having was that the layered navigation attributes were only applying to the Configurable product, not the simple products that are lumped within. I've set up a filter to accept the selected filter ID, but I can't figure out how to retrieve the ID itself.</p>
  
  <p>The current loop i'm working with is this...</p>
  
  <pre><code>$appliedFilters = Mage::getSingleton('catalog/layer')-&gt;getState()-&gt;getFilters();
      foreach ($appliedFilters as $item) {
          $item-&gt;getName(); // Retrieves Name
          $item-&gt;getLabel(); // Retrieves selected value name
          $item-&gt;getFilter()-&gt;getRequestVar(); // Retrieves filter code I.E. color
      }
  </code></pre>
  
  <p>I haven't been able to sniff out the method for retrieving the option id which is used to filter the collection, any help would be appreciated.</p>