title: How to get website id using Order Object in Magento
body: <p>I want to get the website id using a Sales/Order object in Magento.</p>
  
  <p>I tried the code below. But it is not working.</p>
  
  <pre><code>$order = Mage::getModel('sales/order')-&gt;getCollection();
  foreach($order as $o){
    //Here i want to get store id and website id 
    echo $o-&gt;getStoreName();
    echo $o-&gt;getStoreId();
    echo $o-&gt;getWebsiteId();
  
  }
  </code></pre>
  
  <p>Store id works as expected. But the website id is reported as <code>null</code>.</p>
  
  <p>Please suggest any other way, which works.</p>