title: Change order of PHP function
body: <p>I am looking to change the order in which a list is being brought together in our Magento cart.</p>
  
  <p>We have the following coding:</p>
  
  <pre><code>public function getOptionList()
  {
      $options = false;
      if (Mage::getStoreConfig('SCP_options/cart/show_custom_options')) {
          $options = parent::getOptionList();
      }
  
      if (Mage::getStoreConfig('SCP_options/cart/show_config_product_options')) {
          if ($this-&gt;getConfigurableProductParentId()) {
              $attributes = $this-&gt;getConfigurableProductParent()
                  -&gt;getTypeInstance()
                  -&gt;getUsedProductAttributes();
              foreach($attributes as $attribute) {
                  $options[] = array(
                      'label' =&gt; $attribute-&gt;getFrontendLabel(),
                      'value' =&gt; $this-&gt;getProduct()-&gt;getAttributeText($attribute-&gt;getAttributeCode()),
                      'option_id' =&gt; $attribute-&gt;getId(),
                  );
              }
          }
      }
      return $options;
  }
  </code></pre>
  
  <p>Which displays the following: <a href="http://awesomescreenshot.com/053ffeie9" rel="nofollow">http://awesomescreenshot.com/053ffeie9</a></p>
  
  <p>We are looking to swap the Attributes and Options over so the Attributes display at the top of the item.</p>
  
  <p>In the coding we've established that the top if statement is for options and the bottom if statement is for the attributes, so theory being it should just be a case of swapping them over... unfortunately it doesn't seem as simple as that.</p>
  
  <p>If we swap them the attributes don't show but the options do.</p>
  
  <p>Would someone be able to recommend anything to try as we're getting very frustrated trying to sort this.</p>