From 18a80e8f841d59276a48c8c237105e331253aadf Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 26 Oct 2011 15:23:19 +0100 Subject: [PATCH] Order id in woocommerce_customer -> get_downloadable_products(). Closes #104. --- classes/customer.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/customer.class.php b/classes/customer.class.php index af617dbde24..57f3bf03b78 100644 --- a/classes/customer.class.php +++ b/classes/customer.class.php @@ -181,7 +181,8 @@ class woocommerce_customer { 'download_url' => add_query_arg('download_file', $result->product_id, add_query_arg('order', $result->order_key, add_query_arg('email', $user_info->user_email, home_url()))), 'product_id' => $result->product_id, 'download_name' => $download_name, - 'order_key' => $result->order_key, + 'order_id' => $order->id, + 'order_key' => $order->order_key, 'downloads_remaining' => $result->downloads_remaining ); endforeach;