How do I retrieve the order ID in WooCommerce?
This is quite an old question now, but someone may come here looking for an answer:
echo $order->id;
This should return the order id without "#".
EDIT (feb/2018)
The current way of accomplishing this is by using:
$order->get_id();