added support to woocommerce 2.1 or later
moved some $order->id to $order->get_order_number()