title: Magento - Get the associated product attributes of an item in the wishlist
body: <p>In app/code/local/Mage/Catalog/Product/Type/Configurable/Price.php, I am trying to get the attribute values of an associated product within the wishlist.  I've attempted several approaches but I can only seem to produce data for the parent product.</p>
  
  <p>Latest attempt</p>
  
  <pre><code>    $customer = Mage::getSingleton('customer/session')-&gt;getCustomer();
      if($customer-&gt;getId()) {
          $wishlist = Mage::getModel('wishlist/wishlist')-&gt;loadByCustomer($customer, true);
          $wishListItemCollection = $wishlist-&gt;getItemCollection();
          foreach ($wishListItemCollection as $wlitem) {
              $wishitem = Mage::getModel('catalog/product')-&gt;setStoreId($wlitem-&gt;getStoreId())-&gt;load($wlitem-&gt;getProductId());
              //echo $wishitem-&gt;getId() . '&lt;br&gt;';
              if($product-&gt;getId() == $wishitem-&gt;getId()) { //if the current product id equals the wishlist product id
                  echo $wishitem-&gt;getSku()."&lt;/br&gt;";
              }
          }
      }
  </code></pre>
  
  <p>That only gets me the parent product's sku.  What I ultimately want to get is the attribute value for 2 attributes that I added for configurable products (not super attributes) but it seems that $product in Price.php only has the parent product collection.</p>
  
  <p>Other Attempts:</p>
  
  <pre><code>            $item_s = Mage::getModel('wishlist/item')-&gt;loadWithOptions($product-&gt;getId(), 'simple_product')-&gt;getOptionsByCode();
              $simple_product = $item_s['simple_product']-&gt;getData();
              $simple_product_id = $simple_product['product_id'];
              $sim_product = Mage::getModel('catalog/product')-&gt;load($simple_product_id);
              print_r($sim_product);
  </code></pre>
  
  <p>This only resulted in an error on the page.</p>
  
  <p>Also: </p>
  
  <pre><code>    $_item = Mage::getModel('catalog/product')-&gt;load($product-&gt;getId());
      //echo $_item-&gt;getData('ppuom');
      //print_r($_item);
      $simpleProduct = $_item-&gt;getOptionsByCode()['simple_product']-&gt;getItem()-&gt;getProduct();
      print_r($simpleProduct); 
  </code></pre>