title: Magento observer get custom price
body: <p>I use the code below for changing the price into the Magento cart dynamic.</p>
  
  <pre><code>class Test_Pricecalc_Model_Observer
  {
      public function modifyPrice(Varien_Event_Observer $obs)
      {
          // Get the quote item
          $item = $obs-&gt;getQuoteItem();
          // Ensure we have the parent item, if it has one
          $item = ( $item-&gt;getParentItem() ? $item-&gt;getParentItem() : $item );
  
          // Load the custom price
          $price = $this-&gt;_getPriceByItem($item);
          // Set the custom price
          $item-&gt;setCustomPrice($price);
          $item-&gt;setOriginalCustomPrice($price);
          // Enable super mode on the product.
          $item-&gt;getProduct()-&gt;setIsSuperMode(true);
      }
  
      protected function _getPriceByItem(Mage_Sales_Model_Quote_Item $item)
      {
          $price = $price + 10;
          return $price;
      }
  
      protected function _getRequest()
      {
          return Mage::app()-&gt;getRequest();
      }
  }
  </code></pre>
  
  <p>Does someone now how to get the custom price from the product detail page after choosing the product options there? I want to use that price as basis price fur my further calculation.</p>