title: How to get the options of a configurable attribute in Magento?
body: <p>we want to export/import configurable products through the Magento-API in another system. What is important for us, are the values of the configurable products like a T-Shirt which has 3 colors (red, green and blue).</p>
  
  <p>We receive the configurable attributes with the following function:</p>
  
  <pre><code>public function options($productId, $store = null, $identifierType = null)
  {
      $product = $this-&gt;_getProduct($productId, $store, $identifierType);
  
      if (!$product-&gt;getId()) {
          $this-&gt;_fault('not_exists');
      }
  
      $configurableAttributeCollection = $product-&gt;getTypeInstance()-&gt;getConfigurableAttributes();
  
      $result = array();
      foreach($configurableAttributeCollection as $attribute){
          $result[$attribute-&gt;getProductAttribute()-&gt;getAttributeCode()] = $attribute-&gt;getProductAttribute()-&gt;getFrontend()-&gt;getLabel();
          //Attr-Code:    $attribute-&gt;getProductAttribute()-&gt;getAttributeCode()
          //Attr-Label:   $attribute-&gt;getProductAttribute()-&gt;getFrontend()-&gt;getLabel()
          //Attr-Id:      $attribute-&gt;getProductAttribute()-&gt;getId()
      }
  
  
      return $result;
  }
  </code></pre>
  
  <p>But how is it possible to get the options used in that product (e.a. blue, green, red if the configurable attribute is "color") with the now available label/id from the configurable attribute which we got through the above function?</p>
  
  <p>Answers are very appreciated!</p>
  
  <p>Tim</p>