title: Magento 1.9: Observer not working. Is there any way to test observer is working or not?
body: <p>I have added below code in my <code>config.xml</code> file</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
  &lt;global&gt;
        &lt;events&gt;
              &lt;checkout_cart_add_product_complete&gt;
                  &lt;observers&gt;
                      &lt;oroola_oroolachildren_observer&gt;
                          &lt;type&gt;singleton&lt;/type&gt;
                          &lt;class&gt;oroola_oroolachildren/observer&lt;/class&gt;
                          &lt;method&gt;updateProductPrice&lt;/method&gt;
                      &lt;/oroola_oroolachildren_observer&gt;
                  &lt;/observers&gt;
              &lt;/checkout_cart_add_product_complete&gt;
          &lt;/events&gt;
      &lt;/global&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>So as per above configuration file, I have created a Observer.php file in app/code/local/Oroola/Oroolachildren/Model/</p>
  
  <p>Observer.php</p>
  
  <pre><code>&lt;?php
  Class Oroola_Oroolachildren_Model_Observer extends Varien_Event_Observer
  {
      public function updateProductPrice(Varien_Event_Observer $obs)
      {
          header('Location: http://www.google.com/');
          die();
          $quote = $obs-&gt;getEvent()-&gt;getQuote();
          $item = $obs-&gt;getQuoteItem();
          $product_id=$item-&gt;getProductId();
          $_product=Mage::getModel('catalog/product')-&gt;load($product_id);
          $newprice=$_product-&gt;getPrice()+rand(10,100);
  
          Mage::log('My log entry', null, 'mylogfile.log');
  
          // Set the custom price
          $item-&gt;setCustomPrice($newprice);
          $item-&gt;setOriginalCustomPrice($newprice);
          // Enable super mode on the product.
          $item-&gt;getProduct()-&gt;setIsSuperMode(true);
          die();
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>I have added php header and redirect it to google.com to test its working or not.</p>
  
  <p>But This is not working.</p>
  
  <p>I want to change Product price before/after add to cart.</p>