title: Get final price of configurable product in observer
body: <p>I have configurable products that have two prices (price and price per month). As the price of the product is fixed and only price per month can change with the options, I added an attribute (device_price) that will store the price, and the price attribute will have the price per month.</p>
  
  <p>But of course when I add the product to the cart, I need to charge the price, not the price per month. so I used an observer for checkout_cart_product_add_after that has this code:</p>
  
  <pre><code>public function updatePrice(Varien_Event_Observer $observer){
  
      $item = $observer-&gt;getQuoteItem();
      if ($item-&gt;getParentItem()) {$item = $item-&gt;getParentItem();}
  
      if ($item-&gt;getProduct()-&gt;isConfigurable()){
          $device_price = Mage::getModel('catalog/product')-&gt;load($item-&gt;getProduct()-&gt;getId())-&gt;getPrice_device();
          //set information
          $item-&gt;setCustomPrice($device_price);
          $item-&gt;setOriginalCustomPrice($device_price);
          $item-&gt;getProduct()-&gt;setIsSuperMode(true);
      }
   }
  </code></pre>
  
  <p>But now on the cart I want to show both prices, final price is automatically there as I update it on the observer, but how do I get the price per month? (price of the product plus price of associates selected).</p>
  
  <p>I suppose that the monthly price is somewhere on the quote item before I override it (do I actually override it or just say magento to look at the custom instead the original?). </p>
  
  <p>What I was thinking is to get that monthly price and store it somewhere on the quoteItem, so that I can easily access on the cart to it.</p>
  
  <p>How can I get the final price of the configurable product on the observer?</p>
  
  <p>I am open to other suggestions if consider that there is a better way to approach it.</p>
  
  <p><strong>EDIT SOLUTION</strong></p>
  
  <p>Finally I have found where it was. I feel bad now because is actually very simple to get it :( I was trying to get the value from the item all the time but it is actually on the product inside the item</p>
  
  <pre><code>$_item-&gt;getProduct()-&gt;getFinalPrice();
  </code></pre>
  
  <p>this will give to you the final price of the configurable product with the options selected.</p>
  
  <p>Maybe that can help someone else not wasting the time I did.</p>