title: Magento sales_order_place_before $observer getevent null
body: <p>i have the following observer method:</p>
  
  <pre><code>public function ModifyOrderECC(Varien_Event_Observer $observer)
  {
      //sales_order_place_before
      Mage::log('ECC!! = ModifyOrderECC has been called successfully - event/array-5', null, 'mylog.log');
      $cart = $observer-&gt;getEvent()-&gt;getCart();
      try{
          if($cart != NULL)
          {
              Mage::log('$cart contains data!', null, 'mylog.log');
  
              foreach ($cart-&gt;getItems() as $item) {
                  $getID = $item-&gt;getProduct()-&gt;getId();
                  $productName = $item-&gt;getProduct()-&gt;getName();
                  $productPrice = $item-&gt;getProduct()-&gt;getPrice();
                  $quantity = (string)$item-&gt;getProduct()-&gt;getQtyOrdered();
  
                  Mage::log('ID: '.$getID, null, 'mylog.log');
                  Mage::log('Name: '.$productName, null, 'mylog.log');
                  Mage::log('Price: '.$productPrice, null, 'mylog.log');
                  Mage::log('Qty: '.$quantity, null, 'mylog.log');
              }
          }else
          {
              Mage::log('sorry Cart is null :(', null, 'mylog.log');
          }
  
      }catch(Exception $e)
      {
          Mage::log($e-&gt;getMessage());
          Mage::log('error = '.$e-&gt;getMessage(), null, 'mylog.log');
      }
  
  }
  </code></pre>
  
  <p>however the getCart event is null, and I've also tried getquote which is also null. I need to get the contents of the cart from the event to see what contents its creating.  Any ideas?</p>