How to get the Commerce Product type from the order object. D7
I ended up just querying the database, here is what worked for me

$product_type = db_select('commerce_product', 'cp')
    -&gt;fields('cp', array('type', 'product_id'))
    -&gt;condition('cp.product_id', $product_id, '=')
    -&gt;execute()
    -&gt;fetchAll();