title: Magento: create bundle order programmatically
body: <p>I have this code: <a href="http://pastebin.com/iFwyKM7G" rel="nofollow">http://pastebin.com/iFwyKM7G</a></p>
  
  <p>Inside an event-observer class which executes after the customer registered. It creates an order automatically and it works for simple products.  However I cannot figure out for the life of me how to make it work with Bundled product!</p>
  
  <p>How can I make this work with a bundled product?</p>